Also log responses
Made URL handling more flexible, and adjusted demos accordingly