Add faction definitions for mobs
Fix crash with enabled faction handling
Add automatic faction creation on mobf activation
Add initial version of faction handling (incomplete)