Minor fixes

- Updating `proxy()` to limit rewrites when using a root path
- Fix URL creation in `proxy()`
- Fixes #218