Remove class inheritance and fix checks for ruby 1.8
Make rsyslog server port configurable