Add :publicly_available to Templates

Now Templates can be public or non-public.  This exposes the public flag on
images from cloud providers.

For Openstack, this information is available on the detailed image information
retrieved from the Openstack Glance API.

For Amazon, to avoid making an additional EC2 API call per image, the
:publicly_available information is derived from how the images are gathered by
the EC2 Parser.  For instance, get_private_images sets :publicly_available =
false, and get_public_images sets :publicly_available = true.
Fixed refactored code to set date and time variable based on params that came in.

Changed to set date variable from exp[exp_value_key][exp_value_index] only when params_time_key came in.

https://bugzilla.redhat.com/show_bug.cgi?id=1142711
Merge pull request #659 from h-kataria/fixed_refactored_exp_editor_date_selector

Fixed refactored code to set date and time variable based on params that...
Merge pull request #651 from blomquisg/publicly-available-images

Add :publicly_available to Templates
Teach rails the singular of Quota

This is required for reporting purposes where we actively "singularize" the name
of model objects in order to contantize and load them.

https://bugzilla.redhat.com/show_bug.cgi?id=1133132
Add Cloud Tenants and ResourceQuotas to reports

Allow users to select fields from CloudTenants and CloudResourceQuotas in
reports.

https://bugzilla.redhat.com/show_bug.cgi?id=1133132
Add more models to reports

* Flavors
* Availability Zones
* Security Groups

https://bugzilla.redhat.com/show_bug.cgi?id=1133132
Add MiqExpression.determine_relat_path

to build the model relationship path correctly if class_name is specified for an association.
The :parent,:path field built in the model relationship tree is used to populate the Available Fields in reporting.

https://bugzilla.redhat.com/show_bug.cgi?id=1133132
Add test cases for MiqExpression.determine_relat_path and .build_relats.

https://bugzilla.redhat.com/show_bug.cgi?id=1133132
Use EmsCloud for the association to ext_management_system for the cloud models.

https://bugzilla.redhat.com/show_bug.cgi?id=1133132
Add EmsCloud and EmsInfra to report base tables.

So reports can be created based on these two models.
https://bugzilla.redhat.com/show_bug.cgi?id=1133132