Expanded variables message to also support bytes produced by service factories.
Added in code to serialize service factories.  Still must add in deserialization and test.