Fix various compile errors.
Clean up (event)actions a bit. Fix some more compile errors.