Added query and result models. Untested.
Added dev routes.