monkey_patch the time module for eventlet

Fixes bug 988099

Change-Id: I24dfe81863484ed07b77ab20f9d8ab7746e977df
Add check for image_locations table

This commit adds a check for the image_locations table to the
_assert_tables method in TestGlanceManage. When migration 018
was added in change: I1536c9276bc807aac26849e37556b465e8b5c9eb
a new image locations table was created, but didn't update the
functional tests to check that it had been created.

Change-Id: If76702f623e201505c62d05e245003e3783d8574
Enable support for MySQL with test migrations.

This commit makes the necessary changes to enable the migrations
tests to pass with both mysql and sqlite. However the proper mysql
database still needs to be created beforehand for the tests to run
with mysql.

The sqlalchemy alter() method breaks on sqlite when mysql is enabled
for other databases. So for sqlite testing the alter() calls are now
done manually.

This also adds the MySQL-python module to the test-requires list
so that it will get installed for CI and the virtualenv used for
unit tests.

Change-Id: Ic72476b8e6a910c25747641ef1882639019b433e
Merge "Add check for image_locations table"
Merge "monkey_patch the time module for eventlet"
Merge "Enable support for MySQL with test migrations."
Remove unused imports

Change-Id: I3e92e2a010dc9ab333e64d18337995d12ad55bc3
Fix response code for successful image upload.

The API spec specifies the response code for a successful image
upload is supposed to be 204. However, currently the response is
201. This commit fixes this, and sets the response code to 204.

Fixes bug 1136480

Change-Id: I7ea3926c2dd86961f2dd9bc975b10799560ef20a
Merge "Fix response code for successful image upload."