Remove the l filter from templates
Avoid using intermediate vars

This way is easier to associate a particular context var with the
reverse call.
Get context in the view rather than in the template

Reduces cruft in the template and provides a better knowledge of the
context that the template is passed.
Use reverse instead of l