Use bookshelf's model registry plugin

Refs #2170

This removes the circular dependency problem from our models
- add the registry plugin
- switch all models and collections to be registered
- switch relationships to be defined using a string, which calls from the registry