LIVEOAK-515

Properly add the application to the RequestContext, updates issue with single page app not being able to handle errors.