Removing dispatcher code and implementing http.Handler interface.