Add resource registration.
Review Request #1559 — Created May 1, 2010 and submitted
Add resource registration. Callers can now register models to be used with specific resources, which will be automatically used by the encoders. There's no longer any need for a caller to have their own encoder when used with resources. This is dependent on /r/1528
Works with my Review Board change.