Changes for Authentication. 

https://github.com/InMobi/hive/pull/32
The `getService` function is casting the return value just before return.