Moves subnets into a submodule

Refactors plugin.py by moving subnets functions and their associated
tests into submodules for better plugin readability.
Merge pull request #139 from Cerberus98/subnets_submod

Subnets submod