Added apis for networking and gui, still a WIP