(https://github.com/pouchdb/pouchdb/issues/445) Implement Incremental MD5 calculation

Replace jkmyers-md5 with Spark-MD5 in order to calculate MD5 hashes
incrementally. The use-case for this change is to avoid blocking the UI
thread when adding large attachments.
(#445) Use setImmediate and code style changes.
fix test