Created a package for API controllers V1.

Change-Id: I3f43718aae5829826d034648426285b4579e2c6b
Port from nova: Fix local variable 'root_uuid' ref

Port I0221984ce4f7c406990315ef820d9ce63fc6e015 from Nova.

Fixes an issue where the root_uuid variable gets used
before it is assigned.

Instead of generating NameError, log a more descriptive error
and allow the exception to be raised.

Fixes LP Bug #1190269.

Change-Id: Icecac7443d296546734f7a13995530a7991b9f04
Merge "Created a package for API controllers V1."
Merge "Port from nova: Fix local variable 'root_uuid' ref"