Set before_end_lease event as DONE

Now Blazar sets the before_end_lease status as DONE, when the time of
the event comes and is properly processed.

Change-Id: I854269d15d4f5d8727187f10c6bc26d01c5ffb12
Closes-bug: #1316982
Made lease id optional in create_lease logging

Fixed a crash that happened when a user tried to create a lease with a
before_end_lease date sooner than the start_date date.
When this situation happened a log line crashed because it was trying
to access the lease id, which was not defined at that moment.

Change-Id: I846761eb447d18892d0ad8910df22784d73b2bf9
Closes-Bug: #1326523
Event status set to ERROR when it fails

When a resource action fails during the execution of an event, the event
status and the reservation status are now set to ERROR.

Change-Id: I37a7757c5ee8a12665a41ffc3c8194d921f196e4
Closes-Bug: #1333345
Fixed pylint errors

Fixed two real pylint errors and two false positives were silenced.

Change-Id: Ic32918d3ba95fab578ce43a2565a060f633ecc03
Closes-Bug: #1334847
Renamed Climate references to Blazar in the docs

References to climate in the docs have been renamed to blazar reflect the new name and enable uploadig docs to readthedocs. Also updated the docs to reference the new architecture image.

Change-Id: I594849afb6268892a03cc716a1707dcde835fa52
Closes-Bug: 1324581
Merge "Event status set to ERROR when it fails"
Added blazar as an alias package

Added blazar as an alias package of climate package. With this alias is
possible to rename imports in small patches that address only one or few
submodules. This will help the review process.
Modifications in setup.cfg:
    * Renamed some entries from climate to blazar
    * Added alias for console scripts

Change-Id: Idbca4873466a39e2077c91c09ef1f985cfed7654
Partial-Bug: #1311761
Merge "Made lease id optional in create_lease logging"
Merge "Renamed Climate references to Blazar in the docs"
Merge "Added blazar as an alias package"
Adding version discovery

Added a new WSGI application to handle version discovery between Flask
and Pecan REST API implementations.
Added version discovery to V2 API.
Modified the version discovery of V1 API to be consistent with the one
implemented for the V2 API.
Adding testscenarios to test-requirements.txt

Change-Id: Ib69d6a1362cb10fb53bed92568db1a81a5924e51
Implements: bp/api-version-discovery
Updated from global requirements

Change-Id: I284910789fe9edc44850eb62d4677c8896bd4649