Fixed rare permission bug, code refactoring, added percentage drop.

fixed rare permission bug regarding players being kicked while dead,
beginning of code refactoring, and added ability for server owners to
decide that players drop a percentage of their inventory. Full
randomness is still being worked on.