CSRF protection, fixes #2.
Fixed post & page writing.