Make sure p is always initialized.
Rename some mime related struct and funcs.
Fix handling of unknown top types.
Make sure the mime type is lowercase.
Split pload and analyzer stuff along with a few optimisations and bugfix.