Fix attachment name validation when creating inline attachments.

Do not allow names to start with an underscore.

Closes COUCHDB-1210.
Fix COUCHDB-1363 - race condition in couch_changes

It's necessary to re-open the #db after subscribing to notifications
so that updates are not lost. In practice, this is rarely problematic
because the next change will cause everything to catch up, but if a
quick burst of changes happens while replication is starting the
replication can go stale. Detected by intermittent replicator_db js
test failures.
fix bad backport in e82a0c9
Improve script url validation
Include a comment before jsonp output
improve parsing of mochiweb relative paths

Patch adapted from http://www.couchbase.com/issues/browse/MB-7390
update NEWS & CHANGES
use more docs in view_compaction test to ensure a difference
Update for 1.0.4
housekeeping after 1.0.4, prepare for 1.0.5