Implementing Event Dispatcher

Pretty much the same as my other PR, except I have corrected the issue (had renamed $config_file to $configFile in the controller, forgot to change it everywhere)

For one of my projects, I needed to know when YAML files were updated, and have altered this bundle to use the event dispatcher to dispatch an event upon update. I have also moved the flash message setting into an event subscriber.