removed all use of MementoConfig, replaced with the evil globals that are standard practice in PHP :)