Set up headless JavaScript testing

Install Qt4, xvfb, and two gems: capybara-webkit and headless. This
should allow me to test JS headless without Selenium and X server.
Switch add another file in tickets to JS

Provide an 'Add another file' link that uses JavaScript so that users
can upload more than one file.