UI additions.

added: leader selection, locator selectors, curve selection, some
callback mechanisms.
+ few bug fixes and a bit of spit & polish.