reading and writing the NPC flag was broken, because flags were a fully loaded unsigned int. making it an int instead, and adding a test.
fixing a bad test in which shadowmasters were deserting to faction null (causing a crash).
Merge branch 'master' of github.com:eressea/server