Messaging: Serialize packet before transport

When "permissions": { "cross-domain-content": [ ... ] } was used,
the receipt of the message packet failed ("NS_ERROR_FAILURE: Failure").
Fixed the problem by serializing the packet before delivery.
Release v0.2.3 (small bugfix)