Moves subnets into a submodule

Refactors plugin.py by moving subnets functions and their associated
tests into submodules for better plugin readability.
Moves networks into a submodule

Refactors plugin.py by moving networks functions and their associated
tests into separate submodules for easier plugin readability.