Have added JSON serialization and dirty attribute tracking to Model. Dirty not fully implemented, yet.