Implement FilterPolicies

Closes #3, #4, paves the way for implementing custom filters for safe HTML escaping, templated markdown code, etc