Some goodies

More accurate serialization(with modes), traits and resource types as a model. tracking of sources. Probably needs some cleanup and discussion to be merged.