Capybara configuration

- Sets up Capybara for debugging phantomjs tests.
- adds spec_helper dependency in features.
- fixes span that was not enclosing content.
Configures app to use requirejs-rails gem

To help consolidate assets, this commit configures the app to use the
requirejs-rails gem, which requires some re-structuring of the JS code
(namely, moving modules out of the module directory).
Merge branch 'requirejs-gem' into ajax-complete-js-init
Removes temporary directory

Removes directory temporarily used while requirejs-rails gem was being
set up.
Updates tests

Updates non-passing tests.
Merges ajax-complete-js-init
Code cleanup

Removes unnecessary console call and does some minor re-arrangement to
tests.
Code cleanup

- Fixes incorrect JS variable name.
- Formats tests and removes unused code.