Added support for external authentication.

If FOF_AUTH_EXTERNAL is defined in the config, the active user will be determined by the server environment.