Fixing a bug with the quest log.
Add 95% of the shop tutorial script...

Part of #107
Merge pull request #401 from authenticate/upstream2

Fixing a bug with the quest menu.
Added support for dialogues within the shop mode + setting the position of the dialogue window.

I also fixed the shop script.

Part of #107

The last part is to more cleanly separate input management from gui update in the Shop mode,
and add support to select an item in the lists from a script to finish the tutorial.
Quick-fixed the html manual table borders.
Added the right html doctype to the offline manual.
Made AbstractMenuState::_DrawBottomMenu() virtual

It doesn't change anything feature wise, but is saner c++ code.

Fixes #405
More on the offline manual...