Redirect www. to root domain
Use my own CSRF implementation
Some code cleanup