RR: added tree_allocation view to provide a JSON payload.
Added view tests.