Added trimming of search input, see issue #42
Changed integration test driver to Selenium. Webkit doesn't work properly with Capybara 2