Implement rule iterators.

Implement rule iterators, exposing identifier (string), tags (list) and meta (dictionary).