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