Added a toJSON method to convert a ViewModel back into a model
rename toJSON toModel
Merge branch 'master' of github.com:bmac/BaseViewModel