allow running the web interface with a different path prefix

setting application.context now works with assets and ajax

fixes #588