support apps in subfolders

I have an app that is installed into a subfolder like http://example.com/app/#!/page.
But now for the phantomjs request the request path is thrown away.

handle if an single page app is installed into a subfolder and has urls like e.g. http://example.com/app/#!/page