Adding support for rulesdir, yml format, autoreload rules