(Bug 4895) Include jquery.ui.core.js in more places

Dependency of the other jquery.ui.* components, we were including it some of
the time but not all of the time, which made things break in very specific
cases.