Address Dojo memory leak

Also updates code style for the affected file only.

Fixes #1086
Closes #1087
CanJS: Update to 2.1.4
Backbone: Update jQuery, localStorage plugin