Complete overhaul of managed object context. Using persistent stack class instead of document from app delegate.