imported openchange_user_cleanup script from old version

This is for ldb backends
user_cleanup_script updated for mysql backends
openchange_user_cleanup: pretty format and --ignore=sogo|openchange|imap option
openchange_user_cleanup: typo in help
Use DLIST macro whenever possible

This avoids crashes when manipulating the double-link lists by hand.
openchange_user_cleanup: change regexp format to get connection strings
openchange_user_cleanup: ignore default to empty list
openchange_user_cleanup: enable autocommit
openchange_user_cleanup: drop sogo table instead of truncate data
Merge pull request #128 from sixstone-qq/ejhernandez/idset-ranges-manipulation

Use DLIST macro whenever possible
Merge pull request #127 from openchange/jgarcia/user-cleanup-script

user cleanup script
Fix #CR-633 in oxcfxics on folder change

Set retval while getting specific props from a openchange db table row.

The problem comes from the `retvals[i]` is overwritten in L1789 so we
have to store the retval in the local variable likewise other switch
functions does.
Merge pull request #132 from sixstone-qq/ejhernandez/fix-crash-folder-change-oc-db-folder

Fix #CR-633 in oxcfxics on folder change
Merge pull request #110 from openchange/master

Updates from upstream
Merge branch 'master' into trusty