Added event hooks to control to allow mod control of mob spawning.

Had to create a new PR because of github derpiness. This replaces #280.