Fixed a bunch of bugs; tested through to install of Devise