Fixes #11693 - removed 'destroy' for smart class parameter from API controllers
fixes #10832 - separating lookup keys into puppet and variable
Refs #3809 - Remove cops for empty lines
Fixes #7733 - Remove hosts.yml fixtures and use FactoryGirl instead
set apiadmin user in headers before api controller tests
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.