Refactor network module

JsonHandler now clearly extends NetworkHandler
Rename JSON->Json to avoid long capital chains.