[ticket/12006] Cleanup the module auth function token replacement code

PHPBB3-12006
[ticket/12006] Add extension enabled check token to module auth

PHPBB3-12006
[ticket/12006] Test for ext module auth

PHPBB3-12006
[ticket/12006] Add module_auth event

PHPBB3-12006
[ticket/12006] Missing a space

PHPBB3-12006
[ticket/12006] global $phpbb_dispatcher;

PHPBB3-12006
Merge remote-tracking branch 'EXreaction/ticket/12006' into develop

* EXreaction/ticket/12006:
  [ticket/12006] global $phpbb_dispatcher;
  [ticket/12006] Missing a space
  [ticket/12006] Add module_auth event
  [ticket/12006] Test for ext module auth
  [ticket/12006] Add extension enabled check token to module auth
  [ticket/12006] Cleanup the module auth function token replacement code