Make directory template more flexible for auth

Support arrays for:
Allow, Deny and Require

Support the Satisfy option