Fix indentation.
Remove json encoding.
Remove debug stuff.
Log the current user and us csrf by default.