MOB-2272 - translations in embedded maps

* changed the way embedded map source is generated,
* added new method `utils.addTrailingSlash()`,
* added unit tests.
http://jsperf.com/indexof-vs-charat/6

Maybe use `path.charAt(path.length - 1) === '/'`?