server/upload*.py,build/init*: switch from a python file for hardware detection dict to a json one.
health: client have to send an hw structure, not a json

As the server expects the message to be an .hw structure, let's
transform the json to hw.