First pass at a binary protocol definition.