Relocated some protobuf utility functions to a shared folder between citizen and master.