Support callback hooks

+ now supports callback hooks with triggers for most file tree
functionality - returns data object with data about object that was
triggered
+ Better AJAX error handling