Parse user-supplied PEM files.

This is the first step towards a version of this code that can also add
user-supplied PEM files to the tree of certificates. If a user supplies
PEM files, we can now convert them to our in-memory representation.
Add basic multipart parsing.