Add hasPerm() helper function

Allows checking to see if current user has permission on the provided allow / deny list without redirecting. Allows you to restrict parts of a template to specific groups or users.