added plugin type 'auth'
Added prototype for Auth-Plugins
Load auth types from plugins in settings_authtype class
Added Auth-Plugin-Prototype to autoload
Setup auth system from plugins
Bugfix: auth types are now correcty added
Refactored auth system: All auth methods are now introduced as plugins.
Better support for multi domain AD setups

This changes how the AD auth backend handles multiple domains. It is now
possible to configure multiple authentication domains even when not
using SSO. USers can provide a domain in NTLM- and Kerberos-Style
(prepended with a backslash, appended with a @-char).

IMPORTANT: If you used AD auth before, you will need to adjust your ACLs
           and $conf['superuser'] settings.

This patch changes how user names are cleaned. Spaces and other special chars
are no longer removed. The only adjustment is lowercasing the username
and streamlining the domain handling.

User's login names will now contain the domain name in Kerberos style
(user@yourdomain.com) when they logged in a non-default domain. You need
to make sure your ACLs are setup accordingly.

Domain names are always lowercased and need to be specified lowercased
in the config.
use UTF-8 aware lower casing
some code cleanup/PHP5ization
fixed domain handling in user names
add user's domain to the list of groups
Merge branch 'master' into multiad

* master:
  allow selects in block forms
make AD utilitiy functions public
lowercase groups
make use of adLDAP 4.0.4 in AD backend

The new version of adLDAP improves the speed in handling recursive group
memberships dramatically
Merge branch 'adldap4' into future

* adldap4:
  make use of adLDAP 4.0.4 in AD backend
Merge branch 'multiad' into future

* multiad:
  lowercase groups
  make AD utilitiy functions public
  add user's domain to the list of groups
  fixed domain handling in user names
  some code cleanup/PHP5ization
  use UTF-8 aware lower casing
  Better support for multi domain AD setups

Conflicts:
	inc/auth/ad.class.php
Merge remote-tracking branch 'janschumann/master' into future

This merge fixes all conflicts but is otherwise untested and might break
funktionality in the auth system somewhere. It NEEDS MAJOR TESTING!

Some refactoring of the auth plugins is still needed:

  * move to PHP5 style
  * fix comments
  * add plugin.info.txt

* janschumann/master:
  Refactored auth system: All auth methods are now introduced as plugins.
  Bugfix: auth types are now correcty added
  Setup auth system from plugins
  Added Auth-Plugin-Prototype to autoload
  Load auth types from plugins in settings_authtype class
  Added prototype for Auth-Plugins
  added plugin type 'auth'

Conflicts:
	inc/auth.php
	inc/auth/pgsql.class.php
	inc/init.php
	inc/load.php
	lib/plugins/auth.php
	lib/plugins/authad/auth.php
	lib/plugins/authldap/auth.php
	lib/plugins/authmysql/auth.php
	lib/plugins/authplain/auth.php
Merge branch 'master' into future

* master:
  Always load the parser in the test environment
  Escape filename in regex in search_index()
  Changed XHTML validator icon to HTML5 (FS#2619)
  fixed wrong apple-touch-icon extension (FS#2627)
  Revert "removed html dependency from media query detection JS in new template"
  removed html dependency from media query detection JS in new template
  de-couple mobile JS from widths to actual media query equivalent (fixes FS#2623)