Fix project tree onclick bug

Wrapped onclick bindings in anonymous functions
so that they can still pass two args but not be
called onload.
Project tree remove component

Hooked up project tree delete button to existing
component removavl function. Had to remove a stub that
was shadowing an implemented version.