Refactored network and security_group creation.
Refactored ip_address and ip_lease.
Added tests for simulated interface and modularized common parts.