added support for optional traling slashes in API calls, fixed a bug in the proxy 404 handling, added tests for the proxy handler