Added support for more BPS event handlers, improved the project template for extensions