Sort search results by download count.

Search results can be sorted by download
counts using sort=[-]downloads.
Merge pull request #249 from mhilton/download-sorting

Sort search results by download count.

Search results can be sorted by download
counts using sort=[-]downloads.
add commented elasticsearch config
Merge pull request #253 from jrwren/v4

add commented elasticsearch config
Boosting search results on download counts.
Merge pull request #252 from mhilton/download-boost

Boosting search results on download counts.

Boost search results based on download counts.
internal/v4: add debug/pprof endpoint
Merge pull request #250 from rogpeppe/099-debug-pprof

internal/v4: add debug/pprof endpoint

This will make it possible to gain insight into how the server is behaving at runtime.

I've added a test for the endpoint that's most straightforward to test.
The others will need to be QA'd.

To QA, run the charmstore, then:

    go tool pprof http://$charmstorehost/v4/debug/pprof/heap
Add legacy statistics log type
Merge pull request #255 from mhilton/statistics-logs

Add legacy statistics log type

Add an additional log type for legacy statistics.
Added lagacy statitistics import status.

The /v4/debug/status report now includes the status of the legacy statistics
import.
Merge pull request #258 from mhilton/legacy-statistics-status

Added lagacy statitistics import status.

The /v4/debug/status report now includes the status of the legacy statistics
import.
Mongodb log sorting
Merge pull request #259 from mhilton/legacy-statistics-status

Mongodb log sorting

Sort the results of the log query correctly.