I put together a javascript library for encoding and decoding Counterparty data in Bitcoin transactions using the OP_CHECKMULTISIG method.

https://github.com/loon3/xcp-tools-js