Cleaning up of PHP example client

I have been setting up the middleware and example client locally and finding my way around. These changes should make it a little easier for others in future. I added an index page with some instructions and links to the example pages, and have tweaked the examples to print failure messages for non-200 response codes (previously failed with output "NULL").