HTTP returns json even on error

Example...

    tuq> from bad place where error is expected
    {"error":"Parse Error - syntax error"}
SendWarning() added to endpoint interface
use count == 0 instead of extra first bool
remove dead MIN_KEY/MAX_KEY/MAX_ID code

I saw a FIXME comment related to those global variables, and it seemed
the code was dead.