Added is/setEnabled() methods to CM_Debug

- Refactoring: Reordered methods
Added unit test for Smarty plugin "location"

- Tested cache usage