An increment towards implementing subscriptions

Get the subscriptions out of handler-state, and write the correct
response.