Add support for the PostStart event handler.

That will force you to not make a big long hairy function like this one, instead you'll have multiple small easy to test functions. It also doesn't mix up the conceptually separate tasks of parsing the api object and calling a handler.