Add config.json to handle rest url when deploy to zanata war

Does this regex strip all the `/` characters out of the editor path, so if it was at `/path/to/editor/` it would end up as `pathtoeditor`? Is it meant to just strip the first one, like `/^\//g`?