Support node.js and AMD loading, and fix all open issues.
Update docs to upcoming v2.3.