Eras and day periods

Fixed the code for ears and day periods and written tests to go with
them
Finished of Calendar data