Issue 199: Appended baseApiUrl

Removed static configuration other than API_VERSION which is referenced in document upload functions.

Regarding the angularJS cross origin resource and local development problem :- https://github.com/angular/angular.js/issues/1243#issuecomment-9839184.

1 noticeable bug :- After logging out when using localhost as base URL, we cannot log back in unless we reload page.