Minor fix in process_response method (version bump to 0.3.1)

I've shifted the call to set_response from after the signal sending to
before, as signal receivers may want to inspect it.