Use six.moves.urllib.parse instead of urlparse

To keep Python 3.x compatibility, use six.moves.urllib.parse to
replace urlparse.

Partial-Bug: #1279611

Change-Id: Ibe5e028acd12e8d753d95cfd9c3f63072278b120
Use uuid instead of uuidutils

Glance no longer import uuidutils from Oslo.
This patch replaces uuidutils.generate_uuid() with
str(uuid.uuid4()).

Change-Id: I463324cefe488138d709ffe0cc4a587d6ecaa850
Related-Bug: #1253497
Merge "Use uuid instead of uuidutils"
Merge "Use six.moves.urllib.parse instead of urlparse"