WIP: Add CSRF token for write operations

#98
```php
if ($this->loggedInUser && !in_array($method, array('GET', 'OPTIONS', 'HEAD', 'TRACE')) && $use_token) {
```