Refactoring to remove duplicated code.

I didn't realize that code in VPStaticExportScript was visible to other
scriptlets. Added pubDateForItem in VPStaticExportScript which is now
called from staticExportArchivePathForItem and used by
VPStaticPageEntryTemplate.