Use interpolation instead of `#toString`
Fix browser version

Was using `require('util').inspect`, which caused an error in browsers.  Instead, define an
`inspect` method in resident util module that falls back to other options (`global.inspect` is
available in chrome, and will fall back to interpolation).