fix weird version optionality
add browserify-shim for ws
better, pluggable unique ids