Merge pull request #9 from tomhughes/master

Default to */* when there is no Accept header
Log the content of unparseable Accept headers
Improve Postgres error reporting
Ignore notice messages

Notice messages are written to standard error by default, but in
daemon mode that has been closed and then typically reused for the
network connection leading to notices being mixed in the fastcgi
responses which is somewhat unhelpful.
Allow "*" as a symonym for "*/*" in the Accept header

Unfortunately it seems JOSM is rather fond of sending nonsense accept
headers that look like:

  Accept: text/html, image/gif, image/jpeg, *; q=.2, */*; q=.2

Which has an invalid (and redundant) entry for "*" that was being
rejected by the accept header parser.