Merge pull request #376 from takkaria/restruct

Introduce & use linked list helper functions
Merge pull request #377 from takkaria/restruct

Refactoring of store code
Replace TERM by COLOUR as the color name prefix
Tidy up and simplify cmd-pickup.c
Small tidy of cmd-obj.c
Clear planned stair creation in player_place, fixing #1802
Some tidying of mon-list.c
More random tidying
Move some more UI stuff into ui- files
Move more UI stuff out of 'core' files
Update header files for rearranged files
Fix test
Fix up headers post rearrange
Move some game init stuff to more logical places
Get OSX makefile test lib dir located properly
Rename cmdq_pop_verb() to something more sensible
Make cmdq_execute() actually execute the entire queue.
- Make cave_generate() also always allocate cave_k
- Set is_dead = FALSE on player birth to a more reasonable place
Add necessary include
Add another test util for upcoming test