Extract logic from server in to Laboratory class

Now single laboratory object (a Laboratory is somewhere experiments are
run) is used by both cmd line and server and has all the logic that had
crept in to server.go.