Correct amount of samples in the chart

We need to always show some reasonable amount of samples in the chart.

It was hardcoded to 1000s time windows, when there will be a
several months of data, it will be a great amount of samples.

It needs to be changed to always show some reasonable amount of samples
(I would say 400)

Also exceptions added for unexpected states of dates.
Date_from has been changed to beginning of the day, and date_to to
the end of that day.

Fixes bug 1221566
Change-Id: I60cd0aa0882c5b8890d61b649c312d4f7e9ddf82
Optimization of ceilometer API

- optimizing requests for resource by multithreading on resource level
  (each resource is obtaining stats in separate thread)
- fix last comment addressed in review
  https://review.openstack.org/#/c/35589/
- fixing typos and misleading comments

Fixes bug 1218407
Change-Id: I24826bac7679bd075792691e3ed9a342aa1659fb
Don't generate the secret_key until after loading local settings

Currently the settings.py generates a secret_key, then loads user
ovverides.  The former step requires write access in a directory
that the webserver has no real business trying to write to, which
is a security risk, amongst other things.

As a simple mitigation step, defer loading the default until after
the local_settings.py has been loaded.  Then the admins can decide
if/how the secret_key is stored (or not stored, as the case may be)
and in absentia of that, it uses the current behaviour of scribbling
files in odd places.

Fixes Bug: 1220884

Change-Id: I158702f9500563a4d16f6aefc1a3afea766b1e92
Remove unused LOG

In some files, we import logging and define
LOG, but we never used it later, so i remove
those unused LOG and make horizon code clean.

Fixed: bug #1231761

Change-Id: I1ebf0098c647e7522f5f1a93cfece7a52bdc05c1
Correcting help text for database launch

Change-Id: Iae384e0b3e676f93ddd4c7c2b4c8e1dd65526654
Closes-bug: # 1232882
Fix add policy missing rule issue

In firewalls/workflows.py retrieve 'rule' instead of 'firewall_rules'
from AddPolciy post message. In test_add_policy_post, we need to
ensure 'firewall_policy_id' field is not set before added to policy.

Change-Id: I5f9ff81f42f4f8c7ce5c638c9074cc2dec4e1434
Closes-Bug: #1231235
Updated from global requirements

Change-Id: I053b84cd2a13f22e654b8fe94c62df60f55f3ec6
Limit the odds of making N calls to Glance for image names

In the future we should completley deprecated the "image_name"
property on our Server class, but for now we can at least avoid
making N calls to glance per server in places where we know
it is most costly, such as the Instance overview page.

Fixes bug #1229128

Change-Id: Ib8dfb090db5a5db719042291f2f8a08c3e62b5e0
Merge "Don't generate the secret_key until after loading local settings"
Merge "Correct amount of samples in the chart"
Merge "Updated from global requirements"
Merge "Remove unused LOG"
Merge "Optimization of ceilometer API"
Merge "Limit the odds of making N calls to Glance for image names"
Merge "Correcting help text for database launch"
Merge "Fix add policy missing rule issue"