Trac's NavAddPlugin with some improvements.