Added cookie jquery function.
Merge remote-tracking branch 'upstream/master'

Conflicts:
	lib/default/main.js
Added timezone handling, added page api run, reworked code that ran templates, reworked pages to use this new api method.