Initial network code, some cleanup, adding json .netmf