Fixed groups init in imprules.

This fixes the behavior of the handle /v1/rules.
Now it always returns the keys "methods" and "handlers", even if there is no corresponding function in the rules.