Moved network specific code from core to network bundle. Added network request API.