oc/MAPIStoreContext: Fix log messages to actually print 64bit FMIDs

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc/MAPIStoreMapping: Split the check for existing entry so we have better error message

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc/MAPIStoreSOGo: Do not destroy current thread context after any API call

We have thread context already in place during *_init() function.
Thus guarding every API call with TreadInit/Destroy is:
- a bit redundand
- makes SOGo backend not reentrant even on single thread and leads
  to hard to find use-after-free crashes

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc/utils: Move OCDumpPListData() function into plreader - this is the only user for this function

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc/utils: Make "plext" category publicly visible

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc/dbmsgreader: Fix to work again this time basen on BSON format for msg data

Also, implement reading for message data in case only 1 param is passed.
This could be usefull when have msg data by other means than by
reading it directly from DB

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc: Log when mapistore backend is successfully initialized
oc: Protect backend initialization to happen only once
oc/TallocWrapper: don't handle Threading initialization here

It is SOGo backend module responsibility to setup/teardonw all
ObjC specific initialization

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
Merge pull request #20 from Zentyal/kamenim/fix-crash-delete-folder

Fix random crashes in SOGo - mainly when moving folders here && there