Feature/8703 client unit tests

Added gulp-mocha unit tests for tile-client rest modules. This PR contains changes on feature/8692-hotswap.