Issue 250: handle deploying at a sub-url if APPLICATION_ROOT is set