WIP: Wiring the backend and front ends together

Major commits:
- More mature diags tree viewer
- Flag in views.py to turn on/off connection to back end