Add logging support and test server(requires PHP 5.4) for tests

I added logging support(with a user-specifiable logging function) and a test server to the HttpfulTests script.

Requires PHP 5.4 for the built in server. Might be advisable to do PHP version checking to make sure the tests still work on PHP < 5.4.