Add /api/stat documentation
Add some config docs
Update some documentation around TSMeta and trees