Hi,
I wrote some stuff to deal with the init thing, which is IMO vaguely better than other things I've seen, is suitable for my purposes, maybe one of them will work for you. Or not.
InitMgr and InitTool page
The documentation was written in 10 minutes at 3:30 in the morning by me accidently...