write script to ROM and execute

This handles all of the usual tasks that will be required for injecting
and running custom scripts.
simplify givepoke by using inject_script_into_rom
start_trainer_battle spawns a battle
remove a dead function