Magento 2.0 have a registry object that should help easy the transition for extensions. The class is Magento\Framework\Registry, and you can inject it in any constructo

and then set variables with

and fetch those variables back (even from a differnt object – Magento\Framework\Registry is a shared/singleton object)

How to use Registry Object in Magento 2.0