Delint round 1

This PR improves our jshint configuration and de-lints a bunch of files.

Notable functional changes include a bug fix in wallet.js and a bunch of cruft removal in web.js