Misc changes

Improved parsedate, separated trimming from sanitize, changed globals to
exports for uniformity, more IEAFs, made progress on content filtering
features
Started on content filters

Got about halfway through adding content filtering