Add event handlers and goroutines to cleanly shutdown sockets
Abstract away file system calls for easy loading and saving