Added support for token authentication
Bugfixing - undefined variable
Bugfixing - using session_id not session.id
Bugfixing - using @current_user.id instead of sesstion[:user] because session object can not be prepared if using token authentication
Bugfixing - properly deleting token