Initial work on serializing calls in HostGL. (port from V0)