Setup Capybara to use PhantomJS, for Travis compatible JS tests.
Add a Searcher class for matching contacts using PgSearch.

Abstracting the search into a separate class should help reduce the
complexity of the Contact class, and make it simpler to switch the
search engine later without breaking a lot of tests and having to change
controller code etc.
Add #autocomplete JSON endpoint for asynchronous contact matching.

The idea is to search as the user fills out the new contact form.
Use Bower with Rails-assets for foundation 5 css and js.
Install Twitter Tyypeahead.js
Separately search on last_name. Prepent contact_ to search scopes.
Use Typeahead.js to search for contact matches as the form is filled out.
Basic styling for autocomplete box.
Fix broken redirection JS when clicking on autosuggested match.
Move edit contact form to a partial.
Bugfix: must include IDs with strong parameters when nested_attr_for.

Otherwise you get duplicates because there's no ID to find the existing
nested records.
Contacts can be edited, clicking a match suggestion lets you edit.

With Turbolinks it's pretty seemless, as though the form is being filled
in when reality it's a new view.
Merge branch '2_match_existing_contacts'