Offload registry config initialization code to a separate library

The main registry library is getting a bit large/bloated, so this is a
good candidate to move to a standalone library - about 7 KB of code that
is only generally used once a session.
phpdoc
Correctly handle pseudo-MIME parts (i.e. message/rfc822 .0 parts) in IMP_Contents#getBodyPart()