Reading of POSTed data fixed, README updated
Error messages come as HTML or JSON, depending on request
Handling of parsing errors added
Minor changes