httputil: set the headers before writing them

Change-Id: Ibb7db1ca06744b64ec29664059364fe7a1e8e837
search: TimeConstraint

Change-Id: Ic50290109043c1ad906f25935e5fad4c2170ea77
search: skip TestHandler in short mode

Change-Id: I6f0c651cf7bf4324c9c4d785400588c2ff08557e
search: start of DirConstraint. mostly notes. not implementation.

Change-Id: I6403b4f9be2aa06778fb1ef96edde2896557c3c9
index: doc tweak

Change-Id: I30836b1a6967ac86f7f16118a9bf81a293b09a27
TODO: use glog

Change-Id: I94ce97b93c73bee47f90a966f5cb1e860b23233a
C+A: add Robert Obryk
Merge "httputil: set the headers before writing them"
search: IntConstraint
search: optimize ClaimList.Less sort. duh.
search: rename AttributeConstraint to PermanodeConstraint, add ModTime constraint
Merge branch 'master' of https://camlistore.googlesource.com/camlistore
pkg/index: use a map to populate the mutations

When indexing upon a blob reception, we first populate
all the mutations in a map instead of in a batch mutation.
Then we transfer all the mutations in a batch and commit
it immediately. This makes the window when the batch mutation
is open much shorter, and will ease future indexing because
it allows reading from the index while writing the mutations
to the map.

Change-Id: I276282388f59ca543835bfa5ec64986453b23fe1
Merge "pkg/index: use a map to populate the mutations"
pkg/search: add modtime in WANT to fix tests

Also fixed fakeindex clock to use a time.Time.
And synchronized the fakeindex and the indextests clocks to the
same origin.

Change-Id: I986abca300d61241069132619028f470cacd61da
search: change BlobMeta to have a CamliType, not a misleading MIMEType.

Change-Id: I1c6e111ef27aafd5a15f9b38746361093a78e9e6
search: ditch BlobSizeConstraint, use IntConstraint instead

Change-Id: I99bece643841feab777175479743b3bd1fc421b8
search: multiple constraints at top level

Change-Id: I964a0d394c3c03e2409c91fb1d240847ff07ddb3
search: little TODO

Change-Id: I38a98c9c9b77a899536cf0d7601ce2030d6f4dda
index: start of optional support for keeping index all tightly in-memory for search

Change-Id: Ie7fbafa1376505d10b0c01470089d260a0c0f97f