Selected entity now properly highlights in tree

Fix for: https://github.com/cwrc/CWRC-Writer/issues/174
Fixed bugs with selecting and deleting/overwriting

https://github.com/cwrc/CWRC-Writer/issues/161
Removed console.log call