include support for browserify
bump version to 3.1.2
update changelog