rhbz1110627 zanata init

https://bugzilla.redhat.com/show_bug.cgi?id=1110627
and https://bugzilla.redhat.com/show_bug.cgi?id=1038852

Depends on https://github.com/zanata/zanata-api/pull/15 and https://github.com/zanata/zanata-server/pull/520
The precondition check could just be moved to `tryMatchPath` - returning an optional is not adding any value since it is just immediately unwrapped, so `tryMatchPath` might as well just return a plain value.