fixes #3364 Add option to disable automatc host creation when a report is received
[REFACTOR] fixes #2967 - refactored Fact Importer

Based on Dmitri Dolguikh <dmitri@appliedlogic.ca> original patch.

- renamed original fact_importer class to fact_parser class
- moved fact handling logic to its own fact_importer class
- fact importer now assumes single-value facts
- added a uniqueness constraint on fact_values table on fact_name_id and host_id
- added tests
refs #2967 fact deleted counters did not propagate correctly.
fixes #3140 continue - apipie params fix
fixes #3279 roles edit page is long and missing a filter
Fixes #3350 - Adds title on login page
fixes #3267 - API v1 compatibility for /api/hosts
refs #2792 - Adding comments to pxe templates
fixes #3256 - include members in usergroup show
Fixes #3481 - Don't have to set a hostname for each interface, but it must be unique if it is set.
fixes #3017 - add api/v2 routes only in config/routes/api/v2.rb
fixes #3017 - add api/v2 permissions
fixes #3017 - copy views/api/v1 to views/api/v2 if they do not exist
fixes #3017 - copy controllers/api/v1 to controllers/api/v2 if they do not exist
fixes #3017 - change api/v2 controllers that inherit from V1 to inherit from V2:BaseController
fixes #3017 - copy api/v1 actions to api/v2 controller since they do not inherit from v1 anymore
fixes #3017 - copy api/v1/functional tests to api/v2/functional if they do not exist
fixes #3017 - copy api/v1/functional tests to api/v2 existing files but missing tests
fixes #3011 - default root node name for api index json response to :results but make it configurable
fixes #3011 - changes to rabl templates and tests since root node defaults to 'results'