Made modules in rsyslog.conf configurable via parameter $modules.

I am making some changes to this module to make it possible to run it on other operatingsystems. This patch makes it possible to use correct modules depending on operatingsystem.