if there is no password file for specific user, try to read global password file

This way we can have a master password for imap access
oc-sogo: try/catch to guard only the actual impelementation rather than *everything*

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc-sogo: Clean up AutoRelease pool and unregister threads in Catch handler

Most of the time we have "not yet implemented" kind of exceptions,
so it is better to clean up allocated resources

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc-sogo: Use [e name] and [e reason] selectors

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc-sogo: Move memory clean up *after* handling the exception

Otherwise the mess is full :)

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc-sogo: Print both [NSException callStackSymbols] and execinfo.h stack trace

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
oc-sogo: pretty print Exceptions in sogo_backend_handle_objc_exception()

Now we have a nice stack trace printed out from [NSException callStackSymbols]

Signed-off-by: Kamen Mazdrashki <kmazdrashki@zentyal.com>
Merge pull request #7 from Zentyal/kamenim/exception-handling-oc-mapistore-backend-functions

exception handling oc mapistore backend functions
Merge branch 'master' into jgarcia/global-master-password
Merge pull request #8 from Zentyal/jgarcia/global-master-password

Global master password for imap access
Re-dded a div causing events not to show at the non-montly view

 * The div is the gradient one. Now is added, but empty, till the
   UI designer takes a look at this.
Merge branch 'mjulian/event-gradient-fix' into precise-cloud