[TASK] Replace all calls to CMS functions with namespace equivalent

A simple shell script was used for all the replacements
https://gist.github.com/daKmoR/7490199
[TASK] Switch to namespaces