Add devise gem and related code, update routes, tests