Cleaned up creation/deletion of networks.
Changed activate network to use publish event.
Refactored network manager.