Add a ProcessMemoryPlugin base class.

This can be used to build plugins to sample memory usage.