Found a fast way to add support for testing wgMementoTimemapNumberOfMementos
added an integration test to catch an issue with the edit page, which still hasn't been fixed yet
fixed bug that caused edit page to malfunction, integration test is in previous commit; the bug appeared due the globals reorganization