Fix global leaks (and potential ones)

Also includes some general code clean up
Reorg and fix up Siesta tests
Add new recurrence Rule class

Thanks to Gabe Sidler for the initial version of this
Add Jasmine unit tests for Rule class