Parse message dates
Add --minage and --maxage
default output format is json (faster)
Refactor functions into global scope
Add a main()