Refactored managers to use a common ResourceManagerBase class.
Also introduced a Disposable interface.