Remove placeholder from search

User research has showed us that users were seeing the placeholder text and assuming they could only put in strings of those types. A specific example; users needed to search by device manufacturer in the search field, but didn't because the placeholder was 'eg drug or device name'

This commit removes the placeholder handling for keyword field.
Merge pull request #123 from alphagov/remove-placeholder-text

Remove placeholder from search
Move date suggestion text out of placeholder

Multiple changes here:
- The date filters are now way more flexible than they were, so I've changed the suggestions to show two accepted date formats as examples.
- Use "for example" instead of eg because in previous filters, users seemed to treat eg as ie, meaning they would only use the search box with the suggested format types. Since we can fit "for example" in this placeholder text we should use it instead.
- To avoid replication of the same text, and because the date fields are already visually linked by the grey box, have one helptext at the bottom of the box, rather than one for each input.
Merge pull request #124 from alphagov/move-suggested-dates-on-date-fields

Move date suggestion text out of placeholder
Test for treating dates as UK
Set :endian_precedence to :begin

:endian_precedence tells chronic that in ambiguous cases prefer UK date formats to US
Merge pull request #126 from alphagov/prefer-uk-format

Prefer uk format
Refactor Finder to be a Presenter

As we move away from using Finder API, we want to store all the
information for a Finder inlcuding the schema in the Content Store.

This commit is the start of the work that will allow this to happen.
By moving the presentation logic of a Finder from the model to a
Presenter, we follow a more standard Rails pattern. This also allows to
get rid of the horrible `Finder#get` method which fetches the schema
from Finder API.
Refactor facets to use ContentStore response

Now that Finder Schemas are inside the details hash in the response
returned from the ContentStore, we can refactor the facets used and the
Parser.

This also means we can remove the OpenStruct option generation from the
parsers, since all the options are OpenStructs.

While doing this work, I discovered a lot of leftover code that isn't
used anymore such as the `SelectFacet#include_blank` and the methods
related to building native Select boxes so I removed it also.

This commit also contains the updates to the tests.
Remove FacetCollectionParser and Spec

As this is now an OpenStruct, we don't need a seperate class to return
us Facet objects. This logic now happens in the Presenter and talks
directly to the FacetCollection.
Remove RadioFacet and Spec

After Finders were developed we found out through User Research that
Radio Facets were confusing for searching, so we phased them out and
used smaller select facets.

This commit removes the radio facet and the spec.
Remove Finder API from FinderFrontend

This commit removes the call to the Finder API for the schema and
removes the schema beind passed around in Finder Frontend, as it's no
longer used.
Replace Finder API in tests

This commit removes the stubbed response from Finder API and instead
adds the schema to the stubbed ContentStore response.
Use FinderPresenter in Email Subs Controller

As we now use a Presenter, we can call this instead in the email alert
subscriptions controller. This commit also updates the test and includes
webmock to stub out the API in RSpec.
Remove lists

Back at the beginning of this project, I used lists for these checkboxes because it was thought that organisations would want nested checkboxes within other checkboxes. This has not happened, so I am removing the functionality to have nesting.

First step is removing the lists and replacing the ul with a div, as some of the height calculations that the javascript is doing needs an inner element to the checkbox container.
Rip out unused features

Now I've removed the ul/lis from the select facet view, we can remove the support for nested checkboxes from the JavaScript and related tests. Woohoo!
Rename js-inner to js-auto-height-inner

js-inner is not a very good name. Since we're using this div for height calculations only use js-auto-height-inner instead, which is more meaningful.
Display beta link on email signup pages

As we allow Users to signup for email alerts, we want to display to the
User that the service is currently in Beta.

This commit displays a beta banner if a flag is set in the details hash
in the content store.
Display link to email signup based on a flag

As we want the pages to exist without the link being displayed we need
to add a feature flag.

This commit displays the link based on a flag set in the details hash in
the content store item for the Finder.
Merge pull request #127 from alphagov/remove-nesting

Remove nesting