fixes #1, adds client.Handler(http.Handler) http.Handler and corrects middleware test