Using Firefox and Xvfb instead of PhantomJS and enabling submit_and_retrieve_file functional test

This is a workaround for the problem described in #345