Added manager class for Factions hook.

Added FactionsManager class to manage the Factions hook.