Add the tab friends detaching

Also add minor fixes while deleting unsaved buffers
and introduce the 'BufferList' command. The command is now
preferred to the function call.