Fix the bulk case & make api semantics more like the local api

This way it'll be easy to browserify the js api when connecting to a remote dat, just by changing the require statement (mostly. it still needs some work)

also adds travis and badges