Symfony http foundation

This rather massive PR includes the move to the Symfony HttpFoundation component. It also includes a lot of scenarios/features for the Behat tests and other minor tweaks and fixes.