make generic adapter code browser-friendly

- remove dependency on crypto module
- only set module.exports=PouchAdapter in node
- set Pouch.utils in browser
add mem adapter to browser tests
make mem adapter API async, fix atob/btoa 'Illegal Invocation' error