startup: separate startup into three categories
* pre-startup, startup and post-startup

(integrated from trunk branch change 1025acc by Todd Whiteman <toddw@activestate.com>)