Improved AAA interface and register additional hooks in apache2 module