Merge pull request #7 from chinchliff/master

working on tree view
more interface stuff and js cleanup
source and tree metadata editing