Add support for network socket connections

Closes #36