Performance improvements, adding improved bootstrap/application/events-manager

Better a pull request