Allow specifying position in user defined rules

- User can have their custom rules insert any where in the default rule
list by giving a position
- Expose toggling debug mode
- Add debug command to show rule position
- Add debug command to show merged rules