Ambient project runtime

Runtime support for code generated by the Ambient project macro.