Respond to code review feedback.

* Document state machine in addTreeMode.js
* Use more RESTy URL for adding trees
* Explain empty tree instance in _get_map_view_context()