Always parse radio facets as Arrays

In order to link back to the pre filtered Finders, we need to have a
started way of linking backing to select and radio facets. To do this,
we turn the radio facet values into an array and take the first value
when we check it against the allowed_values. This also means we should
remove the test which was safeguarding against this.
Merge pull request #47 from alphagov/always-parse-radio-facets-as-arrays

Always parse radio facets as Arrays
Initial import of LiveSearch JavaScript

Mostly copied from alphagov/frontend and re-written to use .prototype for consistency with the rest of the project.
I've commented out some of the historyAPI stuff in order to get a small thing working with the intention of adding it back in later.
Add support.js required by LiveSearch
Make project use live_search.js

- Change the controller to respond with json
- Add js- classnames for LiveSearch to attach to
- Include live_search.js and support.js in application.js
Wholesale import of tests

- These should all fail, they're copied across unchanged from frontend.
Update liveSearch tests to work with this project

- Update tests to work with these templates
- Remove tests for removed functionality
- Fix some spelling errors in comments
Add empty templates.js

req for jasmine tests + so the asset pipeline doesn't barf
Make container for JS to add mustache into

Add a div with class js-live-search-results-block which the JavaScript can find and update the contents of
Add compilation steps + cleanup to make tests work
Hide submit button if js is enabled

- Add some styles for the form button if it's with a .js-enabled class. If js is enabled we'll be auto submitting the search results so don't need a button.
- Add a test that if the browser doesn't have HistoryAPI we unhide the button so users can use the un-enhanced version (make a selection, press the button, see the results update)
Remove hardcoded form action

Use finder.slug for the form action
Add back in popState handling to JS

- Still needs to update checkboxes
Add a change trigger to the checkbox clear handler

So that the search results update, trigger a checkbox change when the filter's "clear" link is used.
Bind an event handler to text inputs

Currently attached to form change, which is happens when the text input loses focus.
Remove trailing comma that was breaking ie
whitespace fix