Upgraded to Devise 3.4.1. Improved security endpoint #130

\o/ Finally got the Devise upgrade done! Also improved the tests for security endpoint.