Docking toolbars

this is fairly experimental at the moment, but it seems to work