Calendar rebase

This replaces #1281.

Fixed unit tests and cleaner history based on Scott's rebase. Unit tests work in latest FF and Chrome but still fail via grunt. @jzaefferer You mentioned an upcoming improvement for asycTests?
A little. I removed some tests but there are still duplicates. Perhaps just checking for the basic structure and the additional CSS class is enough?