Minor SQL optimization to hosts page
Fixes #179 - allow mass assignment of parameters and host groups.Greatly inspired by Ashay Humane <ashay.humane@gmail.com> at 5c2e395c
refs #186 - minor optimization and avoid a problem when there is noreport in the DB while the host last report date exists
fixes #186 - When reports are kept in the database and not deleted/purged the Host.reports.last query starts slowing down and the hosts index page can take minutes to load depending on the number of hosts. By changing Host.reports.last to Host.find(host.id).reports.maximum('id') we make a more efficient query to the database cutting the lookup time.
fixes #151 - add show host pageAdded a nested link to hosts to lots of controllers
fixes #129 - Link from hostname on the hosts page is absolute instead of relative (breaking https)
fixes #76 - Foreman creates a link to a report even if the report is already deleted
fixes #50, now reports time is shown as long as there was atleast one report
fixes #38
wrong condition - fixes #34
fixes #34
Fixes #16, this adds the possibility to see the host report status out of the host list
fixes #18: Incorrect link to host editing
Fixes #9 and introduce a basic reporting viewing over http
the hostname is now a link to the edit method
added some status icons, and a bit of DRY
a simple host status indicator
add minimal description to forms
using machine localtime to calculate the time ago
show last compile in time ago
empty tests and controller for now