Cowboy protocol and set of utility funs for building JSON/MsgPack APIs.