Miscellaneous bug fixes
The gen_cop_codec callback functions now receives 3 arguments, including the connection context