Added devise gem, tweaked treebook devise code to work with Rails 4.