Made G.Template static so it can be overridden, removed non-portable Template code, added portable simpleTreeMenu code
Added JS for the simpleTreeMenu widget