Fix random CS rules, fix some broken phpdocs
Fix broken spec, add new for CoreBundle state machine callbacks
Some additional CS fixes