Fix persistence layer for updating and creating rules. Refactor Validation API for persistence.
https://trello.com/c/Gzr4gq96