initial.rev17

-fixed renaming mouse down. was also using value instead of label fixed
that
-fixed so launchProfile uses pClosure instead of p in addEventListener
-made makeRename take only primary click
-on load it was showing undefined for selectedProfile if json.lengtth ==
0 so i made it use myServices.tps.selectedProfile.name :todo: i dont
know if i fixed this yet
-on delete it was not getting dirname properly,  now do so using Path
from ini and OS.Path.normalize as Path uses forward slash then use
basename to get dirName
-fixed major bug in deleteProfile, it was doing updateProfile within for
loop, moved it out of it
-changed the way tops are set, no longer use setTops, learned: if top is
set to a value then the element doesnt expand to take up full height of
stack, so am setting tops to 0 if it has no top at start
-OS.File.remove doesnt not remove dir must use OS.File.removeDir
-deleteProfile now succesfully working. :todo: need to handle errors
much better, like in case it was not able to delete or something
-FOUND THE PROBLEM: identing is not working, its so weird i cant explain
it
--on delete profile it properly re tops the menu and removes proper
child and idents properly
--on add profile it properly re tops all but the appended one, it
properly idents all too
--got it working, the problem was it was adding in and setting up while
panel was hidden so it was getting 0 for element height, fixed by making
it used cloned node height