Created PagesController.

Had to modify PageWidgetsManager - the collections were causing unwanted recursion.