Add integration testing

This pull request adds integration testing by putting a rails app in spec/rails_app, like Devise itself does.

I also did a bit of clean up to the code base, including fixing broken specs and re-indenting.

This app does not currently have Devise or Devise Capturable installed.