Add CSRF protection, some bugfixes.
Merge pull request #58 from cyberphobia/original

Add CSRF protection, some bugfixes.