log: organized js functions in order of usage
Log: Collapse All functionality (#1478).

Turned out to be simple to implement, but needs to be tested with
larger logs before closing the issue.

Also renamed expandAllChildren -> expandAll to match new collapseAll
method.
Testdoc: Consistent js function name w/ log.html