Added a mechanism for a domain to wait for termination of another domain. Added memtest program.
Added wrong files in previous commit.