Working version of SnapshotTrainer.

- Modified base of Breze for snapshot capability.
- Improved tests (and passed).
- Model included in snapshot. Reference or copy option.