Created an anonymous function for http.HandleFunc.

func(w http.ResponseWriter, r *http.Request) {
		openDoor(*splate)
		w.Write([]byte("Okay"))
	})

That anonymous function calles openDoor() with the correct arg, and then
writes "Okay" back to the ResponseWriter.
Sending OK before opening the door
Merge pull request #6 from agocs/anonymous_func

Created an anonymous function for http.HandleFunc.