Initial re-work of memory manager.
MemoryManager is now in a working state.  Moved code to separate package.