Refs #3809 - Stabby lambda syntax for oneliners
I started by spotting log.rb which didn't have a lambda wrapping itsdefault scope, as needed by Rails 4. Since the style guide and mostRails 4 documents used the stabby lambda, I turned on the cop so that we...
fixes #10861 - Remove unused columns from the hosts table
fixes #2951 - Host API documentation lacks compute_resource_id
fixes #3267 - API v1 compatibility for /api/hosts
fixes #2969 - remove all legacy api code in UI controllers, add deprecation response
fixes #2989 - missing fields in host API output (API v1 and v2)
fixes 2228 json parsing failed
This commit adds most of the functionality required for API v1
The overall goal was to extract the existing JSON responseoverall controllers, and to move them to a seperate name space.