Squashed commit of branch 'dev':

the table now groups messages by proposals;
messages loss problem fixed;
added archive-cache and archive-table accordance tests.