Rules: add batching to add and remove functions. Support callbacks in add, remove and list functions.
Rules: update function to sync an array of rules. Takes care of adding/deleting rules as necessary