* removed references to global vars

* introduced bug in login modal, since it depends on apiUrl

* ensuring 'use strict' in proper places

* reformated services code