Add support for saving and loading internal state.
Add coverage tests for state and AMD.
Update README.md, and bump version.