Moves the setting of $_SERVER variables to be done in the setUp and tearDown methods
The HTTP_USER_AGENT in the testCalendar test wasn't actually unset which way influence future tests. Luckily we are currently skipping that test - however this rework fixes it.