Add hosts list /hosts to the REST API
Format /hosts output in JSON by default
Best error logging in REST API /hosts
Coding style