Added calc and calendar prototypes

In addition, all prototypes now have variable metadata, such as version
and name. Also *even more* code cleanup and organization.