Allow for replacing the JSON module used

If premature-optimisation is important and there are no complex datatypes in the incoming/outgoing data, swapping `json` for `ujson` or `yajl` (etc.) may be an acceptable trade-off.