Changed the Calendar into a modular plugin with some tests.