some refactoring, added max & min health
Fixed some possible NPEs in the LUA API, and added min- and maxhealth commands in LUA maps
Merge remote-tracking branch 'origin/master'