Add basic abstraction of event error message codes. RE: #1700
Merge branch 'integration' of github.com:symphonycms/symphony-2 into integration