plugins moved to define, RedHat/CentOS support, cleanup

added plugin feature; some syntax additions; supporting RedHat/CentOS package