role delete: check for r/o role and role in a group in model

The following (existing) statement in MiqUserRole class:

    has_many :miq_groups, :dependent => :restrict

will prevent from deleting a role in a group, the 'before_destroy'
statement is to prevent a read only role from being deleted.

Therefore, there's no need to be checking for read only role
and a role in a group in the controller code.

https://bugzilla.redhat.com/show_bug.cgi?id=1126536
group delete: check for a r/o group and group used by users in a model

This fix is:
* to make sure during group removal, the check for a read-only group,
as well as a group still in use by user(s) is being made in the model,
rather than the controller.
* to simplify the (controller) code

https://bugzilla.redhat.com/show_bug.cgi?id=1126536
Added new columns in the Services List

The following new columns were added to the Services List

- Total VMs
- Total CPUs
- Total Memory
- Total VM Disk Count
- Total VM Disk Space Allocated
- Total VM Disk Space Used
- Total VM Memory on Disk

https://bugzilla.redhat.com/show_bug.cgi?id=1115763
simplify copy_hash / copy_array

the second parameter for copy_hash was only used in one place, so
isolate it there.  The second parameter for copy_array was never used,
so delete it.
Host view rewritten to haml
Merge pull request #710 from skateman/view-host-to-haml

Host view rewritten to haml
change sort to sort_by

it's faster and not as much code
Created new toolbar for Schedule button in Reports explorer.

- Created new toolbar for Schedule button in Reports explorer so schedule in OPS and Reports explorer both have their individual toolbars with unique button ids.
- Changed code in application_helper to load appropriate toolbar file.

Fixes #719
https://bugzilla.redhat.com/show_bug.cgi?id=1146989
https://bugzilla.redhat.com/show_bug.cgi?id=1146730
oops!  should have removed the block variable
fix style for @miq-bot <3<3
Merge pull request #723 from h-kataria/schedule_toolbar_fixed

Created new toolbar for Schedule button in Reports explorer.
Merge pull request #724 from tenderlove/copy_helper

simplify copy_hash / copy_array
Merge pull request #722 from tenderlove/sort_by

change sort to sort_by
Add rake task to replicate current backlog and exit when empty
do not load rspec task if no rspec available

On production appliances, rspec gem is not installed
This was causing an error like:

```
rake aborted!
NameError: uninitialized constant RSpec
/var/www/miq/vmdb/lib/tasks/spec_evm.rake:10:in block (2 levels) in <top (required)>'
/var/www/miq/vmdb/lib/tasks/spec_evm.rake:2:inblock in '
/var/www/miq/vmdb/lib/tasks/spec_evm.rake:1:in <top (required)>'
/var/www/miq/vmdb/Rakefile:8:in'
/var/www/miq/vmdb/script/rake:15:in <top (required)>'
/var/www/miq/vmdb/script/rails:6:inrequire'
/var/www/miq/vmdb/script/rails:6:in `'
(See full trace by running task with --trace)
```
set date_from for calendar during initial load of dialog.

Changed code to set date_from for calendar during initial load of dialog. Removed setting of miq_cal_dateFrom JS variables from dialog_runner that was being done after a field is changed in the form no need to do it there as value of show past dates cannot be changed once dialog is loaded.

https://bugzilla.redhat.com/show_bug.cgi?id=1052795
Merge pull request #726 from kbrock/appliance_no_rspec

do not load rspec task if no rspec available
Changed key name to check for provider_region instead of hostname

Changed key name to check for provider_region instead of hostname, EC2 specific code was changed to use provider_region column instead of hostname. Wrong key name in the check was causing validate button to not be enabled when adding EC2 provider.

https://bugzilla.redhat.com/show_bug.cgi?id=1146776
https://bugzilla.redhat.com/show_bug.cgi?id=1147075
Fixed parameter being passed to assert_privilege call.

Added code to pass in different parameter to assert_privilege call depending upon where user is coming from as 'resolve' method is a common method. This method is called when user presses 'Simulation' subtab under Automate maintab and also when user presses 'Simulate' button for a custom button from Customization explorer.

https://bugzilla.redhat.com/show_bug.cgi?id=1146885
https://bugzilla.redhat.com/show_bug.cgi?id=1147081
Merge pull request #729 from h-kataria/fixed_validate_button_on_ec2_provider_screen

Changed key name to check for provider_region instead of hostname