Refactor the serialize/deserialize into two functions
Create scoped methods for belongsTo, improve docs