add jquery deferred promises
Merge branch 'master' of github.com:wyne/log
moved helper methods to site.js