Fix differences in jQuery Versions

CiviCRM uses a specific version of jQuery and there were conflicts
between its version of jQuery.UI and the one used for modal dialog
boxes so all jQuery was refactored to use jQuery() for majority of
actions and cj() for modal dialog windows.