Factored some basic stuff out of the first functional test into a generic FunctionalTest class
Added new second functional test, also functiontest.py that was omitted from previous checkin.
Made first two FTs test the right stuff.
Only deploy if integration tests pass.
Added check that stdout of integration tests is sent to handle_integration_error