Performance enhancements for large data sets and the tree

Ajaxify the tree loading.