full RESTful API for rules object, and associated tests