added new hooks, new packet manager

Added new hooks and methods for the entity targeting system and
registering blocks/items.
Added new packet system to use by all my mods in order to keep it
central and fix bugs with it in one place.