Allow the rest-url to be changed using options.rest.base

Currently you can't change the location of ShareJS' REST-API, it will always listen on `/doc/`. This is a problem if you want to use `/doc/` in your surrounding app, so this pull request adds `options.rest.base` which is a prefix to the normal path: `options.rest.base = '/asd';` => `/asd/doc`