Added the actual code to do calendar stuff and added the framework for Events.