Simplify/reformat code.
Enable protect_from_forgery.