Some improvement for rest-tool

- handle multiple documentroot
- url patterns can be config to be handled by the rest-api, not to proxy