Add template filter for determining access in template land.

This filter allows you to use a conditional to determine whether or not
to render something depending on the user's access levels. Can also be
used to set javascript variables so these can be leveraged in javascript
land to prevent accidental submissions of content.