Expose some JavaScript resource models and make them more useful.

This moves Repository and associated models into the 'common' bundle, so
that they can be used outside the New Review Request page.

It also adds rspNamespace fields to Repository and ReviewGroup, allowing
them to successfully parse payloads from the server.