Replaced ajax calls from prototype to jquery.

- Replaced occurrences of Ajax.Request to $j.ajax
- Changed default type for ajax calls to be "POST", this was "GET" by default.
- Changed occurrences or "Parameters" on ajax calls to "data", jquery expects "data" to be present that it uses to convert to a querystring and send it upto the server.
- Changed miq_dhtmlxtoolbar.js to strip out "?" from the params that is the first character in the button.url_parms string, jquery expects data to be a key/value pair.

Issue #1150
extract preloader usage to a new method

the preloader API in Rails has changed.  This commit extracts our usage
to a new method so that when we upgrade, we only need to change one
place.
Splits code in EmsCommon#update

Splits update method into several smaller methods according to button
used.
UI wasn't displaying error messages from import

Fixes #1155
Angular Prototype for Repository Editor

- Added a controller specific to the repository editor form
- Added a directive specific to the repository editor form
- Added a couple generic directives that would have an application-wide usage
- Changes made to RepositoryController (@edit related changes)
- Added a JS function to display flash messages triggered through Angular events
- Added Jasmine tests

#1064
convert default_scope to use blocks

Rails 4.2 only supports `default_scope` with a block.  Rails 3.2 also
supports `default_scope` with a block, so this converts all of our
default scopes to use blocks.  This way our default scopes will work on
3.2 and 4.2
remove unused refresher

Originally introduced in
86eb555b8df9ae5e4716d765d9fa4ac83e5b6a6f

References to non_ems_refresher have slowly been removed:
- amazon used as an availability zone
- smart proxy used
- manually added for testing
Merge pull request #1225 from h-kataria/ajax_calls_conversion_to_jquery

Replaced ajax calls from prototype to jquery.
construct the group object before `where` is mocked

constructing the group object will call the default scope to get the
default values for the instance.  Calling the default scope will call
`where` with parameters that the mock doesn't handle, so we should
construct the object first
Fixed code to not allow deletion of locked domains.

Added spec test to verify fixed code.

https://bugzilla.redhat.com/show_bug.cgi?id=1173712
https://bugzilla.redhat.com/show_bug.cgi?id=1176202
Merge pull request #1246 from kbrock/unused_refresher

remove unused refresher `NonEmsRefresher`
Remove code allowing missing models to be instantiated via a base class.

Rails 4.2 doesn't like this monkey patch since instantiate's arity changed from Rails 3.2 (1) to Rails 4.2(2).
We can do this better by using a migration to delete miq_workers rows with the offending values.

When we delete models, we need to write a data migration to remove rows for that model.
Remove previously deleted MiqWorker sublcasses from miq_workers table.
Merge pull request #1266 from jrafanie/remove_clever_code

Remove clever code (AR::Base instantiate)
Add miqCheckForChanges calls back into navigation tab links

https://bugzilla.redhat.com/show_bug.cgi?id=1176280
https://bugzilla.redhat.com/show_bug.cgi?id=1176281
Merge pull request #1219 from AparnaKarve/angular_repo_editor

Angular version of Repository editor
Merge pull request #1237 from petrblaho/refactor-controllers-ems-cloud-update-method-1

Splits code in EmsCommon#update
Merge pull request #1267 from dclarizio/restore_check_for_changes_to_navbars

Add miqCheckForChanges calls back into navigation tab links
add a strategy for applying conditions to MiqQueue

This commit accomplishes 2 things:

1. Removes sanitize_sql_for_conditions
2. Updates finder syntax to work with Rails 4

sanitize_sql_for_conditions is deprecated, so we need to stop using it.
Since we can call `where` twice, there is no need for
sanitize_sql_for_conditions.
Pass :type => :bigint to t.belongs_to to retain 64 bit columns.

When we merged [1] via [2]:

[1] https://github.com/ManageIQ/manageiq/pull/895/
[2] https://github.com/ManageIQ/rails/pull/10

We inherited new behavior: we now are required to specify the :type => :bigint when specifying t.belongs_to and t.references whereas these were always bigint using our prior version of our rails fork.

The t.references was fixed in:
https://github.com/ManageIQ/manageiq/pull/895

This commit fixes t.belongs_to.