Add TimePeriodMixin to views

Will add a time period to the template context. Defaults to the
current active time period. Requires you to set `model`.