Module\ModuleManager: Fixed str_replace()
Module: Implemented upgrade functions.