Store current selected grammar when making the grammar popup menu

When making the grammar popup menu, we would set the selected grammar
in the menu based on the document file type. This required that OakDocumentView
had focus and in the responder chain. But, in cases where it did not have
focus (filebrowser or htmloutput) we would select the wrong grammar in the
popup menu.

So now we just store the current selected grammar and reset it
after we finish reconstructing the popup.