Drools implementation started. Unit test and refactoring added. Various
fixes.