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.