MDL-45918 tool_monitor: Rule manager class, unit tests and data generators.
MDL-45918 tool_monitor: Polish the code for rule manager and unit tests