API v3 and SSO/CAS compatibility

I have made some tweaks to enable compatibility with older API versions. This allows us to use puppetexplorer together with PuppetDB version 1.6.
Further I have added a option to specify configurations to be used with $http.get requests. This enables us to use the the api which is secured bay CAS and need some cookies to be sent with the request.