some minor cleanup in laws.h
add missing tests for contacting during a siege.
cosmetic changes, quick and easy assert to prevent too many magicians.
add test for pool, fix a problem with (unused) feature that pools from allies.
refactoring: use add_ally instead of manually crating the structure all over the code.
fix allies with null faction (to be resolved later).
 fix backwards compatible code for at_permission.
Fix some crashes that happened while debugging an old data file.
fix gcc and clang builds: missing include
fix gcc build, ebable new test.
Merge pull request #47 from badgerman/master

refactoring, tests, old datafile compatibility.