Adds expandable home index tree. Also adds debugging in dev env.
Adds expandable tree for home view, debugging, and centralizes some code.