Magic projectile onhit handler

Move processing of magic projectile hits to lua with a global Projectiles interface.