Make webdriver tearDown functions do the inverse of setUp
Fix some races in the functional testing framework
Make intermittently failing functional text_chat test for skipping