Network functions from "Menu"

Moved the server connect and host functions over from the menu script and modified them