Fix the code to work with OpenNMS 1.12

Current required OpenNMS version is 1.12.6-SNAPSHOT
Formatting the code and adding basic JavaDocs.
Merge pull request #1 from agalue/master

Fixing opennms-drools-example to work with OpenNMS 1.12