Call monkey_patch before other modules are loaded

This patch moves the monkey_patch call into the glance scripts that
needs libs to be monkey_patched. This seems to be a good practice and
has given good results for other projects as well.

This change is needed  to avoid loading / initializing modules
before other libs are patched. For example: logging module.

Fixes bug 1163722

Change-Id: Idee486851606d765fb11598967a4f7d56cf46c97
Cherry-picked: 1c5a4d2bdcc00439b5e351d14f47deebdedcb001
Merge "Call monkey_patch before other modules are loaded" into stable/grizzly