Bug 1027707 - Replace the existing module loading facilities in calendar r=gaye

**WIP:** still need to port the unit tests.

created the PR just so other people can keep track of the progress.