Use concrete for standard makefile targets
Remove debug branch of process_each_doc

We either will have a deleted doc or not.
Pass revision id to IterFun for open_process_all

This is a non-backwards compatible change since the signature of the
IterFun argument to open_process_all is now:

    `(Key, RevId, Body, Acc)`

Exposing the RevId is important because if you want to later update or
delete the document by talking to couchdb, you need this id to avoid a
round-trip.
Add code comment to open_doc_int
Fix default target of Makefile
Merge branch 'sf/rev_id'
Allow open_process_all to return an accumulated result

You can now provide an initial Acc value to open_process_all and
receive the accumulated result as the return value of the
function. This allows the function to be used not just for its
side-effect of loading ETS tables if desired. It also better
encapsulates things since a badly behaved IterFun would break things
in hard to understand ways.
Use basename of path as name instead of always using "foo"

This works for the example database.
Add simple perf test for couch_util:to_hex
Merge branch 'sf/return-acc'
use couch_util:to_hex for rev_id generation

#hexiolist was seeing errors on a snapshot of the
production database:

```
exception exit: function_clause
   in function  decouch_reader:hexiolist/1
      called as decouch_reader:hexiolist(<<"379909253">>)
```

The issue in particular was that the rev_id that
came back was smaller than expected (not 16 bytes
md5-ish).
Merge pull request #4 from opscode/sd/use-couch-to-hex

use couch_util:to_hex for rev_id generation
Open file without 'append' option since decouch is read-only.

Having 'append' in list of options causes the file to be open for
writes which causes an error if the process does not have write
privileges.
Merge pull request #5 from opscode/jpl/no_file_append

Open file without 'append' option since decouch is read-only.
Merge branch 'master' of github.com:manderson26/decouch