Adding the Attach Detach buttons and removing Open Close

TODO still.  Make a KEY_ATTACH_COMMAND.
Also edit 367 of CommandDbAdapter.  Hacking it in for now.