Added support for CSRF tokens and PUT and DELETE methods