Add revert_to_published method.

STUD-1860
Merge pull request #4344 from edx/christina/revert_to_published

Add revert_to_published method.