Added config options: terminators and collapsibleOuter

We're using this in two places at Plotly, one to display explicit JSON, the other to get a tree structure but wanted a cleaner look. Also I remove the expander from empty objects.