Allow free-form walking

Major overhaul of astar-code, make it more portable, and easier to read
Merge branch 'master' of github.com:yzzyx/adv
Compile in c99-mode
Fix function monster_goto_direction
Use monster_move_direction()
Clean up trailing whitespace