[FrameworkBundle] Added events for CLI commands

Bug fix: no
Feature addition: yes
Backwards compatibility break: no
Symfony2 tests pass: yes

Fixes the following tickets: #1929, #3889

I've allowed myself to continue the effort from @flevour in #3889 as it was only missing unit tests and a small tweak from my pov, I've kept the authorship in the commit.