rewrite for performance and node 0.10 compatibility
rewrite again to simplify api
fix cli version
update browser version
document better