Added pre-execute hooks

This is for magic-like packages that might require pre-execution, such as an autoreloader that reloads a specified set of modules before executing each cell.