Updates to event.rb to support before boot blocks

Added on_before_booted and fire_on_before_booted! which will allow pre-fork actions in cluster mode.