Added failing auto save test case and added auto save context method.
Implemented auto saving methods in RulesState and made the test case pass.
Implemented an integration test for auto saving of nodes.