COUCHDB-1380 Revert "Better logger performance"

This reverts commit 9f2398faef3936a844caffbaf3eef8675383ccfd which
switched couch_log to use disk_log. Unfortunately that module performs
positioned writes which prevents the usual logrotation strategy from
working correctly.
Fix ets lookup case_clause error after ddoc is updated

This happens if the ddoc_updated event is received after
a client opens the new view group or if a design document
is updated several times in a row and there are still
clients streaming views from 2 or more view groups that
match old versions of the design document.

This relates to COUCHDB-1309
Fixes for COUCHDB-188 fix

On conflict, keep using the current revision tree.
Issue noticed by Paul Davis. Thanks.
Allow persistent cookies

COUCHDB-1304
Fix SpiderMonkey version detection

Randall's last patch to only test for JSOPTION_ANONFUNFIX ended up
reordering the test before the headers were located. This ran into
errors in version detection. This patch reorders the header location as
well as adds a few more default search paths when no --with-js-include
option is specified to account for newer SpiderMonkeys that puth their
headers into $PREFIX/include/js.
updated INSTALL.Unix instructions for homebrew on Mac OS X
replaced --default-key with GPG_ARGS env variable
Remove dead _all_docs code
Fix SpiderMonkey header detection

My last commit broke because the header detection wasn't using the
JS_CPPFLAGS that includes the search paths. Fix is simply to move that
variable assignment to before the header check.
fix show/list/external requested_path for rewrites

Since we're using the x-couchdb-requested-path header to track the
requested path we should expose it in the request object we pass to
the view server. Currently this object has a `requested_path` key which
has the pre-vhost path. However, when there is no virtual host it will
have the post-rewrite path. With this change it always presents the path
which was requested by the client, whether or not virtual hosts were
matched.

This should make the lives of app authors easier by giving them a
reliable source for constructing relative paths and redirects that
works with and without virtual hosts.
Use the correct utility function to get the index directory path
Small tweaks to test 242-replication-many-leaves.t

These tweaks make the test pass on slower machines/environments.
fix COUCHDB-1369.

Don't restart https if we start httpd and vice-versa.
Fixing COUCHDB-1383: update the in memory state of the view on save.
Update NEWS and CHANGES
remove obsolete entry in .gitignore
Ensure compaction respects compression setting

For a database with file format version 6 (CouchDB 1.2+), if
the file_compression setting was changed, compaction ignored
it, making it impossible to change the compression method of
a database and its indexes.

Closes COUCHDB-1394
COUCHDB-111 handle multiple files in couchjs

Rather than concatenating all the input files and compiling them into a
script with the name '<multiple files>', compile each one and execute
it with the same globals.

This change is intended to aide in COUCHDB-111 by preserving file name
and line number information when executing scripts.
COUCHDB-111 and COUCHDB-1389 JS Error Tracebacks

couchjs:
- report stacktraces on exceptions using JS_ReportError

- responds with a trace and message on errors when possible

- propogate Error-like objects from validate_doc_update to the loop

- make Error-like object play nicely with couch_os_process

couch.js:

- transform HTTP error response bodies into an Error instance to
  capture stack information

cli tests:

- print a stacktrace for individual test failures when running the suite

Fix COUCHDB-111
Fix COUCHDB-1389
COUCHDB-111 CommonJS module names in tracebacks

Adds an optional third argument to the `evalcx` function in the JS view
server to pass a filename for display in stacktraces for `Error`
objects. Updates the CommonJS support to use this when `require`ing
modules.