Merge pull request #1 from edwinfinch/master

Merge from edwin's repo
Fix some JS stuff

Remove jQuery as some clients freak out with it, implement replacement
functions $.ajax() and $.serializeJSON()

Tweak date to use toString() because some clients don’t handle it well
without it.
Fix JS
Clean up commented code
Stringify JSON to console
Remove cache, fix extend
Merge pull request #2 from spangborn/master

Fix more JS stuff