Fixed a function name collision

Name collision had caused GETs to the /host/<host_id> to delete the
host instead of return its JSON. Slightly problematic.
Added a new line to make things look nicer when catted
Improved input verification a bit