Fixes several runtime errors. Locks ActiveTriples to a specific ref. Moves devise to be required after EngineCart load application so that the app does not throw a runtime error