[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
Merge pull request #342 from daKmoR/namespaces

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