By Gijs with additions by James. Menubar is disabled at present since it's not usable and potentially inferior to other solutions, but committing the code so it doesn't rot.