IMAP .insert support for custom date (Google Code issue 1707)

The patch adds the Date header to the message inserted values (which on message retrieval returns a void field if not properly set). It also adds RFC5322 date format conversion for datetime input