Move all Devise code into lib
Add Devise's license