Implement server marshall

Provides API to propagate constants and instance references between the client and server.