Fix running in a non root path

fix zfcampus/zf-apigility-skeleton#4

I tried AngularJS advised method using `<base href="" />` but it gave me a bad headache, so I ended up putting ZF2 `basePath` into the DOM and grabbing it in `module.config` to decorate `$location`.
If there is a better way, please enlighten me! I'm not big with Angular... :P