Improve scroll optimizer and incorporate into the TreeTableViewController

UITableViewController+ScrollOptimizer is deprecated. The new optimizer is in UITableView+ScrollOptimizer. It is more flexible and works better.