Bugfix for subnet deletion

Avoid foreign key failure from sqlalchemy by cascading the subnet
deletion.
Merge pull request #83 from asadoughi/subnet_delete_fix

Bugfix for subnet deletion