Implement request class and use acp_groups PHP events

Implement request class and use acp_groups PHP events.