Improve error messages when reading user profiles.

Also associates :origin to the file the user profile were defined in,
and tags it within its metadata.