Updated API module following suggestions:
* Make env options optional
* Move options.params.details to options.details
* Make JSONP callback more unique
* Clean up options.params pattern
Added some documentation for the getCookie method
Added encodeURIComponent to encode any user values being passed into the API module.
Merge pull request #1 from BBC-Location-Services/improvments-to-api-module

Updated API module following suggestions: