DateMath: properly recognize and handle weeks.

Fixes #628.
Merge pull request #629 from mwmiller/date_math

DateMath: properly recognize and handle weeks.