move shared helper functions into seperate file
remove request function from couchdb file
add put attachment method
use new CouchDoc interface
add new struct Attachment