Added leagues app and models. Fixed bugs in team app.