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

As per discussion on irc, my suggestion is the following, and use `if (config.baseUrl)` instead of `if (config['use.mock'])`. Everything else would be basically the same.

```
{
  "baseUrl": "http://localhost:7878/zanata/rest",
  "editorPath": "/editor"
}
```