Refactoring to support CentOS / Debian distributions.

Added plugins.