Added "controllerFactory" property to view configuration, enabling dynamic controller selection

Added support for a "controllerFactory" property on the view configuration. It should be a function returning the controller function. If it is specified, it will be used instead of the usual "controller" property and it allows to choose the controller "dynamically", based on e.g. the $stateParams (which will be passed as the only parameter of the).