Added support to prevent directory toggling

This adds another option to `$scope.options`: `dirToggleable`.

`dirToggleable` is a function that's passed two arguments: `node` and a boolean `expanding` indicating whether the node is expanded or collapsed.

If the result of  `dirToggleable` is falsy, the action will terminate (return) and thus prevent toggling of the node/directory.