Add magic to select active menu item

Based from http://www.turnkeylinux.org/blog/django-navbar