Split the modularity patch into smaller pieces. Add the network module

Change-Id: I47a44773001d70db6daedcbde2abdb9972233f58
Signed-off-by: Maxime Millette-Coulombe <mmcoulombe@inocybe.com>