Added 'lagcay' mode stats.xml.

Add '?omode=legacy' to any URI or <resource ... omode="legacy" />.
Please test.
closes #2097
Fix: Always export <metadata> in stats.xml
Cleanup: Removed a printf() leftover from debugging
Feature: Added a unique ID to each auth_t.

This added a unique ID to each auth_t instance so it can be refered
to e.g. by the web interface for mangement functionallity. Mostly
stolen from connection.[ch].
See #2123
Feature: Export <role>s on stats.xml

This exports id and name of <role>s on stats.xml output. The <role>s
are in a <authentication> container tag and mimic the format used
by the config file.

See #2123
Fix: only export name="" on <role> if set
Feature: Added support for management-url="" in <role>

This adds setting a URL for manegement of roles to the framework.
If no URl is given in the config file this defaults to internal
(/admin/manageauth.xsl) interface if supported by the backend.
See #2123
Feature: Added support to type="static" <role> to list user

This adds support to list the user for a static <role>.
Feature: Also export type="" in stats.xml's <role>s
Feature: Allow mangement of <role>s via admin/ interface.

This allows to manage <role>s via admin interface if the role supports.
Also format of admin/manageauth has been changed:
- <source> was renamed to <role>.
- mount parameter was removed.
- <role> got new parameters: type, name,
  can-adduser, can-deleteuser, can-listuser.
- can-* parameters are bools ("true" or "false"). They should be used
  to show or hide elements on the admin interface.

Ticket #2123 is nearly complet with this, just admin/manageauth.xsl
needs up be updated. Please close the bug in the commit that updates
admin/manageauth.xsl.
See #2123
Feature: Allow mangement of <role>s via admin/ interface.

Updated admin/manageauth.xsl the way suggested by
0eb466b76ddd3996f0caad60e4a0a3d64dcf8f24.
closes #2123
Merge branch 'master' into ph3