Add CSRF token for login with token auth

Also change ``delivery_callback`` to ``restful_unprepared_delivery``