Starts adding support for devise. #1
Fixes editing users from the master backend. #1.