Tidy mongo mapping code and fix dist

 - Standardise on the MongoSerialisable trait for mapping to and from DBObjects
 - Add kludge for deserialising JSON when the model contains Longs
 - Fix dist by excluding an stm class