support CommonJS
bump version to 0.5.0
add package.json and note about npm