implement and test ownership; issue #498
additional mainhandler tests; fixes/answers #500
attach option didn't know about knew toolbar yet
implement missing attach tests.