Add FormContextOr500 action

Returns a pointer to templating.FormContext, or,
if FormContext creation fails (due to problems
saving the CSRF token to the session), it will
render the 500.html template and return nil.