fixes #2931 - API v2 hosts JSON response, add *_name for each *_id

INCLUDES COMMITS FROM PR #978 (fixes #3017) and PR #862 (fixes #3011) and PR #952 (fixes #3018)