Change to_dict to serialize datetimes to seconds since epoch.
Add unit test for get_all_articles.
Add unit tests for to_dict.