Removing trailing whitespace.
Use date objects so mongo can handle it better, doesn't affect fs.
Refactoring messages provider selection and options naming.
Fixing regression with saved messages dir.