Implemented money/delete on client

 - fixed some bugs and security issues in server-side implementation of money/delete
 - couchdb library also updated to implement deleting doc's