as discussed here http://aerogear-dev.1069024.n5.nabble.com/aerogear-dev-JavaScript-UnifiedPush-client-lib-td7323.html
so instead of passing the whole sha-bang, you only should have to pass http(s)//host:port/context