Authentication improvement and old template cleanup

Part 2 "Electric Boogaloo". Now with ACL support.
Included examples of using controllers with authentication.