Implement Directory, Page controllers and views.

Implement abstract ResourcesDelegate for controller-level polymorphism.