Increase maintainability for SCapiService.js, #162.

@weblancaster 
A separate function for each http request is provided. In addition, functions authorize and getStaticAddress are added in order to remove redundant tokens in URLs.  #162
I would like to have this code refactoring.