Networking

Someone should probably read through, @sseago? Let me know if you prefer me to squash first.
This should have :dependent => :destroy, so that mappings will be removed when the deployment is deleted.