return null for .json resources if result is falcy
basis.object.extend -> basis.object.slice
this.setWrapper -> module.setWrapper
fix namespace load under node.js
make basis.require works almost the same as at browser
use module.exports as context for javascript resources (more compliant with node.js)
drop prefix argument for runScriptInContext