Include more info in the meta/stats endpoint.

The meta/stats endpoint returns aggregated downloads
count for the last day, week and month.
It also includes both the stats for the specific
entity revisions and the stats for all revisions of the
requested entity.
meta/stats: fix typos and add a test for non promulgated charms.
Make the use of prefix more explicit when aggregating download counts.
Improve the id/meta/stats endpoint response structure.
Merge pull request #241 from frankban/improve-meta-stats

Include more info in the meta/stats endpoint.

The meta/stats endpoint returns aggregated downloads
count for the last day, week and month.
It also includes both the stats for the specific
entity revisions and the stats for all revisions of the
requested entity.
Use AGPL license.
Merge pull request #242 from frankban/agpl-license

Use AGPL license.
Re-implement the charm-event legacy API endpoint.

Only support what strictly required by "juju publish".
This is based on Jay's work.
Proper error checking in the charm-event endpoint.
Add a missing test for the legacy charm-event endpoint.
Improve docstrings and comments in the charm-event legacy endpoint.
Abstract out a function to retrieve the entity Bazaar digest.
Legacy charm-event endpoint: handle digest not found race condition.
Merge pull request #244 from frankban/add-legacy-charm-event

Re-implement the charm-event legacy API endpoint.

Only support what strictly required by "juju publish".
This is based on Jay's work.
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