Add _BaseFederationExtension class

_BaseFederationExtension class with general use methods should be added
so inheriting classes don't need to reimplement such methods

Change-Id: Ic2d8e8e96b8b16d60071f8a7fb9eeeb3d688dcb8