How can an extension do a custom initialization on Magento start?

Magento 2 event handling has been significantly changed last days: How to handle events