[GS] Database for authorization
Set message timestamp to time received by server instead of broadcast time to fix duplicate message reception. This won't fix legacy messages with wrong timestamp from duplicating, but that can be fixed by sending a more recent message to the client. Other changes just some code cleanup.
Add more logging for last_sync_time changes
Change mailserver to only send messages timestamped after the last sync time, instead of equal to or after the last sync time.
Use time_point instead of time_point_sec for encrypted_message.timestamp. This commit will not compile, it's an intermediate commit to allow some changes to be split into a branch.
update message_cache database to use time_point instead of time_point_sec
Make sure exec_sync_loop is stopped properly when a mail client drops it's connection by catching exception thrown by close in this case. This was causing connection count to be wrong on linux mail server and an outright crash on windows mail server.
make sure we clear ReceivingMail flag even when the message we receive is malformed.
clean up mail read loop
Merge branch 'master' of https://github.com/InvictusInnovations/BitShares
Fix a linux-only problem where mail server didn't cleanup connections dropped by mail clients.
Merge branch 'master' of https://github.com/InvictusInnovations/BitShares