Export models / api handlers as objects instead of functions