moved many methods out of TimeGateResource into MementoResource so they can be reused by OriginalResource classes
Fixed issue with main Memento.php whereby it referenced a nonexistent class, causing Mediawiki's normal operation to fail in some cases