added Module exports. RightManager can now be used via require...