Make ocsmanager configuration query for firstorg and firstou instead of using hardcoded values

styles fixes as blaxte suggestions
Initialize ret and prevent from returning uninitialized pointer leading to crash
mapitest: 1863 use username with oc account
nspi queryrows: fix bad NumPos input
Added oab functionality to ocsmanger. For now it returns a empty address book
util/mysql: set reconnet option before real_connect

Otherwise it does not have any effect
Move 4.0 to stable

Unstable/bleeding edge is now 4.0-proposed
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
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)
openchangedb: transactions on create_folder and set_folder_properties
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.
Use DLIST macro whenever possible

This avoids crashes when manipulating the double-link lists by hand.