Cleanup some variables
Add CSRF check
Merge pull request #233 from owncloud/fix-63

Cleanup some variables