Fixes Dragging Modules in com_modules

A copy-paste mishap, I think...
same bug in com_plugins
same bug in com_contact
same bug in com_newsfeeds
Merge pull request #5309 from smanzi/FixModulesDragging

Fixes Dragging Modules in com_modules
[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.
Removing unnecessary code from JModelAdmin
Merge pull request #5316 from Hackwar/patch-17

Removing unnecessary code from JModelAdmin
Merge branch 'staging' of https://github.com/joomla/joomla-cms into staging