fixes #2272 Added Capybara intergration tests

* Added folders
   test/integration - for non-javascript tests
   test/integration/js - for javascript tests
* Fixed view titles to be consistent
* Other misc changes to get tests to pass

All current integration tests pass!!

Still more pending tests to add in separate pull requests.