Added some infrastructure for models and routing.