[imp] Remove jQuery dependency from core.js. Closes #5257
[fix] Makes sure that jQuery is called for sidebar. Part of #5257
[code style] com_messages backend. Closes #4569

deprecates JHtmlMessages::state() function and introduces new one with proper arguments.