Add protocol.js to parse/create messages