Merged support for RSA/DH/ECDH key agreement

By: manuel.mausz.at
Submitted by: Carlos Lopez (Suso) <lopez@galicia.com>
fix build with -DNO_SM_CACHE (without NO_SM_CACHE ldapvcard broken after HUP signal)
router crashed several times on the day:
Program received signal SIGSEGV, Segmentation fault.
0x0000000000406950 in message_log (nad=0x654270, r=0x624010,
    msg_from=0x64db40 "<email address hidden>/Chelny-14",
    msg_to=0x6581c0 "<email address hidden>/SARATOV-4") at router.c:1158
1158 router.c: access denied.
        in router.c

fix this problem and slightly modified logging format:
1. ISO8601 timestamps
2. space as field delimiter
3. character 0x01 for replace line endings in messages (simple code)

https://bugs.launchpad.net/jabberd2/+bug/1033826

fix https://github.com/jabberd2/jabberd2/issues/29 ([router.c:1206]: (error) Resource leak: message_file)
Merge pull request #58 from dab18/master

fix build with -DNO_SM_CACHE (without NO_SM_CACHE ldapvcard broken after...
Merge pull request #59 from dab18/master

router crashed several times on the day:
Merge pull request #3 from jabberd2/master

Merge jabberd2