HG-7: Web application mode

Please review and merge or provide feedback.