Mechanism to provide rule settings

A mechanism to provide rule settings is added.
Also refactoring using method object in the Console project.