REAL initial commit: add all code per release from KeldorKatarn

http://www.wcsaga.com/forum/index.php?f=22&t=861&rb_v=viewtopic&start=10#p9092