tests for custom encodings
implement custom encodings
use msgpack-js for tests
refactor encoding to use util functions
optional declare the encoding's type
tidy up encodings
tidy
document custom encodings
merge
Merge pull request #149 from dominictarr/custom_encodings

Custom encodings
minor style fixes, minor util encodings overhaul
Merge pull request #173 from rvagg/encodings-fixes

Custom encodings cleanup
Fixed a typo and a MARKDOWN issue.
Merge pull request #175 from pomke/master

Fixed a typo and a MARKDOWN issue.
using readable-stream for db.createReadStream()
destroy() implementation for more backwards compatibility with the old api
close fires before end because of streams2, so use the end event instead
another data event no longer slips through with .pause(), remove the special case in the tests
end should fire 0 times when a stream is destroyed, not 1
set .readable and .writable so that the unit tests for readable stream pass