Improved Json class

* Custom headers
* Json::error() adds custom HTTP status, "400 Bad Request" by default.
ErrorHandler->html now also generates a "500 Internal Server Error"

(in PHP5.4)