Fixed a crash in the shopkeeper and did a bunch of work on him.

I think he's basically "done", except for some polish.

I also implemented a basic configuration system to make things easier.
Just edit rc.lua. Whatever is in there will be automagically placed
inside TUNING.UPANDAWAY.
(the cfg file runs in its own slim environment, so keep it simple;
check configloader.lua for details)