Move 4.0 to stable

Unstable/bleeding edge is now 4.0-proposed
Merge pull request #120 from sixstone-qq/ejhernandez/new-apport-conf-zentyal-4.0

Move 4.0 to stable
openchangedb: Impelement Logger module

openchangedb_logger is an example for doing staff during backend calls.

It could be hooked during openchangedb.c:openchangedb_initialize()
to log requests and return value from openchangedb.c:openchangedb_initialize()openchangedb.c:openchangedb_initialize()openchangedb.c:openchangedb_initialize()
openchangedb: Load openchangedb_logger module based on config option

For now it is very simple and not flexibble, but this approach
will allow us to 'stack' backend chains.
test: Fix OpenchangeDB logger test to reset stats on every test

- allocate root mem context with talloc_new() - easier tracking
- use checked_feature() so we reset everything on every test
test: Add 'debuglevel' and 'option' command line options
test: Avoid ck_assert_int_xx() macro side effect in older 'check' versions

Older version of check tend to expand function calls twice.
So we get every test function called twice in travis-ci and
failures all the way.

Older check.h goes like this:
#define _ck_assert_int(X, O, Y) ck_assert_msg((X) O (Y), "Assertion '"#X#O#Y"' failed: "#X"==%d, "#Y"==%d", X, Y)
Reset table cursor to the beginning of the table across Restrict calls
as stated in [MS-OXCTABL] 3.2.5.4 Processing RopRestrict: "When this ROP
is sent, the server MUST invalidate all current bookmarks (2) of the table
and MUST move the cursor position to the beginning of the table."
Do not try backup apport configuration when running with gdb
Adding more info to duplicates
Give support to reopen an issue if it is closed when adding a duplicate
Merge pull request #123 from sixstone-qq/ejhernandez/enh-oc-crash-digger-Redmine

Enhacements to crash mining tool V.II
Merge pull request #119 from openchange/kamenim/ocdb-logger

OpenchangeDB logger module implementation
openchangedb: transactions on create_folder and set_folder_properties
Merge pull request #124 from openchange/jgarcia/transactions-folder-properties

openchangedb: transactions on create_folder and set_folder_properties
openchangedb: ignore ChangeNumber property when setting folder properties
Merge pull request #125 from openchange/jgarcia/ignore-change-number-sets

openchangedb: ignore ChangeNumber property when setting folder properties
Set prev when splitting a range on deletion

If it was not set, then DLIST_REMOVE was crashing
as it was impossible to rebuild the proper list.
Merge pull request #126 from sixstone-qq/ejhernandez/fix-split-range-on-delete

Set prev when splitting a range on deletion
Merge pull request #109 from openchange/master

Updating from upstream