ticket:3 Made middleware itself, template, models and view for it. Tests pass.