Moved proven code to server

I moved the proven logic from the dummy server into the main server
program.  It inlcudes a useful timeout for network connections.