State change refactoring.
Merge branch 'master' of https://github.com/dmirain/django_replicated