Date picker cleanup.
Merge remote-tracking branch 'upstream/master'

Conflicts:
	index.html
Rewrote template parser, reworked caching, other fixes.