fixes #8277 - upgrade rails to 3.2.20
fixes #8302 - only return active images for openstack compute resources
Fixes #7462 - new UI for network interfaces
Fixes #7369 - External user groups update on login
Fixes #7456 - Extract primary interface from host

All host must have at least one primary interface and one provision (can
be the same interface). Primary interface gives host a name so even
unamanaged host have primary interface (we skip validations of other
attributes for unamanged hosts though).

Host still have name attribute which is a cache of primary interface name.
Therefore we can use the host name in SQL queries, as a friendly_id etc.
Fix functional tests
Fix more tests
Fix integration tests
Fix rest of tests
Fix rebase issues
Test mysql fix
Add debugging info
Fix tests on PG
Fixes #8321 - correctly pull Compute Resource image method from compute attributes
VM orchestration WIP
Merge remote-tracking branch 'greg/primarynic' into fix/7456-extract-host-interface

* greg/primarynic:
  VM orchestration WIP
  Fixes #8321 - correctly pull Compute Resource image method from compute attributes
  Fix tests on PG
  Add debugging info
  Test mysql fix
  Fix rebase issues
  Fix rest of tests
  Fix integration tests
  Fix more tests
  Fix functional tests
  Fixes #7456 - Extract primary interface from host
  Fixes #7369 - External user groups update on login
  Fixes #7462 - new UI for network interfaces
  fixes #8302 - only return active images for openstack compute resources
  fixes #8277 - upgrade rails to 3.2.20

Conflicts:
	app/models/concerns/orchestration.rb
	app/models/concerns/orchestration/tftp.rb
	app/models/host/base.rb
	app/models/host/managed.rb
	app/models/nic/base.rb
	app/models/nic/managed.rb
	app/views/nic/_base_form.html.erb
Fix mac validation