added untested support for CentOS
converting module to work on Ubuntu and CentOS
progressively refining module structure to be more flexible/parameterised
Merge remote-tracking branch 'devopera/master'