Allow objects in responses to return JSON compatible data.
Allow objects in responses to return JSON compatible data.

This commit adds a JSONEncoder for JsonFaucet that allows objects to
implement a to_json_compat method that returns json compatible data.
This can then be converted into JSON and returned as a proper response.

Parnassos/Eupheme,Parnassos/Eupheme