Updated resource model and deprecated functions.

Resource model has performance increase and sorting capabilities. The
Serializer class has also been updated to support main thread event
posting.