Serialisation bug hunt

Serialisation altered to only pass information that the executor should
have access too. Included the addition of an owner flag to the
gateOrWire struct.