Initial work on adding messages into the archive.

Add code to read message, parse it, split into parts, store parts into
CAS and then store MIME tree and metadata in database. The code to
reconstruct message from CAS and database is not ready yet, so I am not
sure how well this works.