Rewrite of the shopping code. Much cleaner now.

Hopefully I didn't break anything.

git-svn-id: https://crawl-ref.svn.sourceforge.net/svnroot/crawl-ref/trunk@1861 c06c8d41-db1a-0410-9941-cceddc491573

Created by  haranp  on July 14, 2007
4DEFHDNO2GUBYL4EGYEAR2IP3KBDXRU7UL7L4P7HEZY2UNR6IYJAC
Change contents