Moved app request handling to get functions in hub.c.