LIVEOAK-515: properly add the application to the RequestContext, updates issue with single page app not being able to handle errors.
Merge pull request #371 from mwringe/LIVEOAK-515

LIVEOAK-515