mbox export refactoring, and from -web to -core

for forthcoming new NSF exporter :-)