Self-organizing Group Management Middleware for Mobile Ad-Hoc Networks