expose 'default' param from json.dumps for custom serialization

`json.dumps` and `simplejson.dumps` both support a `default` parameter to serialize complex types. This commit exposes it on plugin's constructor as `json_default_encoder`. This allows API's to simply return complex objects and let the serializer do all the hard work in a centralized place.