Template tag for pending permissions

Used in Open University implementation.
Merge pull request #73 from ahinz/topic/new-pending-template-tag

Template tag for pending permissions