Reorganized

Removed core::_____() and replaced it with a singleton pattern. …

This way there is less dependence on the core.php object.