making it work with turbolinks,

see http://railscasts.com/episodes/390-turbolinks
switching to poltergeist/phantomjs for testing