better autosaving
tests
Merge pull request #35 from craigspaeth/autosave

@zamiang: Better autosaving