First implementation of protofactory, builds plaintext messages for now