Setup Pluginhost for subscribe hook

The subscribe hook didn't work if subscription was called via REST/public.php. Leafing through the code indicated that Pluginhost probably isn't setup then, so this patch attempts to do this right before the subscribe hook is called.

Tested in the GUI and with REST, and a short inspection of the API code seems to suggest that at least it shouldn't fail since `$_SESSION` is available then.