SD2 update
[mr2574] Implement base of calendar (originally from spp/TC, this port from Cyberium)

Squashed commit of the following:

commit cd27cc98f807a5793fada13402ca6a78fdcd0c3f
Author: Cyberium <cyberium@techemail.com>
Date:   Sat Dec 29 17:28:05 2012 +0100

    [12342] Calendar, handle signup to guild event.

commit f37cb507d6f5b6acf6492bcf48365274d8a65bf1
Author: Cyberium <cyberium@techemail.com>
Date:   Sat Dec 29 13:57:26 2012 +0100

    [12341] Calendar, correctly show guild event

commit 233024b514c167b7a781909f850842b6693cd2b6
Author: Cyberium <cyberium@techemail.com>
Date:   Sat Dec 29 13:05:57 2012 +0100

    [12340] Calendar, correct some opcode handling.

commit 9ff98482ec5b30a6f6ee2ffdc5933eaaf5575111
Author: Horn <horn@trinity.com>
Date:   Sat Dec 29 00:47:11 2012 +0100

    [12339] Calendar, handle massinvite function

commit d12f4d107760ee3301a29ceb72ca926e0b375174
Author: Cyberium <cyberium@techemail.com>
Date:   Sat Dec 29 00:23:40 2012 +0100

    [12338] Calendar, remove guild calendar on guild quit.

commit 5b8921c6e512ac3cd3c4fc7d0a21b3e08e3057a6
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 23:58:38 2012 +0100

    [12337] Calendar, remove event and invite when deleting a char

commit afcdbf4655035c09f67053b31ffa320abe67f80c
Author: Kid10 <kid10@cmangos.com>
Date:   Fri Dec 28 23:35:33 2012 +0100

    [12336] Calendar, change some initialisation way

commit 4bd926107705926657ddfe8e6fc5b3050c3beca6
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 23:18:14 2012 +0100

    [12335] Calendar, rework some security check in handler.

commit 3ffaecf3f2a3a38d210143a9f57f577bc3dfddd2
Author: Kid10 <kid10@cmangos.com>
Date:   Fri Dec 28 20:10:12 2012 +0100

    [12334] Calendar, optimise an assert place, escaping player name, and rename function.

commit 581adc9d18922804670055677685a2d6f132dfc1
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 19:19:10 2012 +0100

    [12333] Calendar, handle copy event

commit 3e594669f968c6a578b56f9cda9461334d91bcc8
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 18:32:32 2012 +0100

    [12332] Calendar, handle update event and restore build

commit 89a9a359a7d1f285395617a93fbd6f09278397db
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 17:25:02 2012 +0100

    [12331] Calendar, handle change moderator status

commit b062f1ebc951a70e3e5c3679f45784cd0ebd0a56
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 17:16:30 2012 +0100

    [12330] Calendar, handle complain opcode

commit 117c9238838939888b716dc3958ae7a7e7fdbc67
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 17:06:20 2012 +0100

    [12329] Calendar, handle remove invite, update event status and get num pending action.

commit e5be0ca94046e5d632a632789ed1fee59afa6104
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 16:39:47 2012 +0100

    [12328] Calendar, handle get event, invite player and answer to invite

commit aafc90b2335e42d3d4c33bce3cc056849adca5b1
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 16:00:16 2012 +0100

    [12327] Calendar, handle Add/Remove event

commit d960fb08a1375792a7fdc2f34727e669aa279748
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 15:48:00 2012 +0100

    [12326] Add forgetted constructor

commit 31cc8a6a67e582b6123e07add543c3974d13e4e8
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 14:08:50 2012 +0100

    [12325] Basic implementation of SMSG_CALENDAR_SEND_CALENDAR Olso added forgetted destructor for CalendarEvent class.

commit f9fd4f095403b09541c19b057cc863643aff908c
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 13:04:35 2012 +0100

    [12323] Add Calendar log filter

commit 1e3e6c7dad0f333b485fbd7ace4c5e359ff81070
Author: Cyberium <cyberium@techemail.com>
Date:   Fri Dec 28 12:07:16 2012 +0100

    [12322] Implement calendar classes

    Thank to Spp (trinity dev) for initial research and implementation
    Almost all next commit will be inspired by his work.
[mr2575] fix Calendar compile, MT works and code to Mangos style (from TC)
[mr2576] Squashed commit of the following:

commit 88f23e5eee21a6d885d12eaf412367bdaf2b3025
Author: Horn <horn@trinity.com>
Date:   Tue Jan 1 12:18:23 2013 +0100

    [12349] Calendar, add showing raid lockout feature.

commit 33d31c45bddfa3ab1d5a9ffbe072a1e2a505267b
Author: Cyberium <cyberium@techemail.com>
Date:   Mon Dec 31 20:38:34 2012 +0100

    [12348] More check on raid reset loading. If db reset time is corrupted and/or set in far future it was never been updated.

commit cb3b08b2ff73d3df701d03c4717cf56d58fc7053
Author: Cyberium <cyberium@techemail.com>
Date:   Mon Dec 31 20:33:57 2012 +0100

    [12347] Calendar, send raid reset info.

commit 87cc77c507dd5cc978f34d5bcddeb1ab449a0643
Author: Horn <horn@trinity.com>
Date:   Sun Dec 30 23:57:35 2012 +0100

    [12345] Calendar, add arena handling.

commit ef557be8f70991815962817e25668e937ad24be0
Author: Cyberium <cyberium@techemail.com>
Date:   Sun Dec 30 19:43:20 2012 +0100

    [12343] Calendar, add sql part.
[mr2577] Redesign Cyberium Calendar reimplementation to R2 style. - use asynchronows saving - use "fake-guds" instead of uint64 Ids - correct guid reorders - correct storage, eliminate memleaks and MT collisions.