Implement full MP support

Skills and items properly subtract MP from the battler's assigned pool.
Also implemented a bunch of anti-cheating measures to prevent AI
battlers from misbehaving.