Now responds to HTTP and JSON