Add item schema handling.
Clean up some things.
Moved interfaces into their own class to fix some issues.
Add item definition index to offset list.