Modified controllers and passport to use new Model structure.
Modified models to take resource option in constructor.