Support command line invocation

Effectively this opens the KorAP API also for shell scripts.

Change-Id: I10181f7882f07ef1d9dc12e572b387af9f79fcba