add rebar to the build
add couch_collate

couch_collate is a nif replacing couch_drv and couch_ejson_compare
binaries to do binary collation using ICU.
inital move to rebar compilation

- move src/apps
- download dependencies using rebar
- replace ejson by jiffy
- replace couch_drv & couch_ejson_compare by couch_collate
working build of couchjs

couchjs is now built correctly. It can be build against the libraries
already installed on the system or statically.

By default it set the CFLAGS to /usr/include/js and the LIBS to -lmozjs185.

These values can be changed by setting the environnment variables
JS_CFLAGS and JS_LIBS.
make couch_index a standalone erlang app

With this change couch_index will be started by the release instead of
letting couchdb to start it. It also has its own supervision now.
make the couch_replicator a full Erlang application
couch_drv has been replaced by couch_collate
fix couch_dbupdates warning
add release build
working release
fix version number

display the release number when available instead of the couch
application version.
remove Makefile.am from apps/ and fix couchspawnkillable
fix path to futon
generate main.js and main-coffee.js
fix coffee script
fix build on macosx
add makefile

To build a full relocatable release, run:

$ make rel

and launch Apache CouchDB:

./rel/apache-couchdb console
Revert "fix build on macosx"

This reverts commit 94fe661233f69faa8cfbcb71d0202eb9bca4600f.
move sources to src
support static build

This change backport the static build from rcouch.

A static build of spidermonkey is the default. To build with the
libraries installed you can pass the parameter `libs=shared` to the
make.

By default couch_collate is using ICU installed on the system except if
you pass the option `icu=static` to the Make.

At anytime you can override the compilation environnement with the
following variables:

JS_CFLAGS
JS_LIBS
ICU_CFLAGS
ICU_LDFLAGS