refactor to make code more modular
Added MemoryManagerConfig and associated tests.
Added FreeMemoryManager and associated tests.
Added StorageRegistry
Re-factored ByteArrayManager
 - moved some logic into private methods
 - added the FreeMemoryManager