Add some fixes for request, its now possible to move the public dir away from the backend.