Added SUBSCRIPTION_RECEIVED state (it will need some more changes
though)
Modified SubscriptionManager, now there's only one instance for the
server (the class should be thread-safe)