Store max id in DataStore. Fixes #201
Save each addition instead of waiting destructor
Merge pull request #261 from evansb/id-gen

Store max id in DataStore. Fixes #201