Make Subnet a first-class resource

Add SubnetConfig class
Add Subnet getters
Add network and subnet tests
Fix error message