Allow for declaration of custom IDs for rules

Fixes #50