Added debug status for elasticsearch

Added debug status for elasticsearch

Added debug status for elasticsearch

Check ES Database, refactor test for valid elastic search set up

Refactor test for valid elastic search set up

Refactor test for valid elastic search set up

Use ClusterHealth strcut instead of map to represent the health status of ES

Check the internal status of the Cluster Health

Move formatting of ClusterHealth

Added JSON unmarshall test
Fix Unit test with httptesting
Merge pull request #239 from fabricematrat/elasticsearch-debug-status

Elasticsearch debug status
Adding Version url with version number and git sha

Added validation of version file
Refactor to have version in binary
Change to git sha
Change to git sha
Change back to git commit
reformat dependencies.tsv with UTC times
Merge pull request #247 from rogpeppe/098-reformat-deps

reformat dependencies.tsv with UTC times

No actual dependency changes here.
internal/v4: add viewbox to icons that do not have one

Some web browsers require a viewbox, but not all icon.svg
files have one. The standard library's encoding/xml package
does not cope well with name spaces, so we use a temporarily
forked version with fixes.

We could be more efficient when processing icon.svg files
that already have a viewbox, but since icons will be cached
anyway and it's reasonably efficient, we use the simplest approach.
Merge pull request #243 from rogpeppe/makyo-icon-viewbox

internal/v4: add viewbox to icons that do not have one

Some web browsers require a viewbox, but not all icon.svg
files have one. The standard library's encoding/xml package
does not cope well with name spaces, so we use a temporarily
forked version with fixes.

We could be more efficient when processing icon.svg files
that already have a viewbox, but since icons will be cached
anyway and it's reasonably efficient, we use the simplest approach.

This is an updated version of PR #235
Add download counts into elasticsearch
Merge pull request #248 from mhilton/download-count-in-search

Add download counts into elasticsearch

Total download counts are now in elasticsearch. Along with some changes to the integration that made things simpler. It will be possible to implement sorting and boosting on download counts.
Added copyright
Enable legacy download counts.

Those values are stored in the extra-info for the entity.
This is basically a hack, and will be removed soon.
Merge pull request #246 from fabricematrat/version-file

Adding Version url with version number and git sha

QA:
make server, go to http://localhost:8080/v4/debug/info
Check that version and id are unknown and that you get a log saying that the version file is not found

Add a version.yaml in cm/charmd/ with version: something and id: something 
Check again it is displayed and no log are appearing.
Merge pull request #251 from frankban/meta-stats-extra-info

Enable legacy download counts.

Those values are stored in the extra-info for the entity.
This is basically a hack, and will be removed soon.
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.