Make sure eventlet starts correctly

This commit prevents a bug where eventlet was not being monkey patched
correctly. It also puts some code common to most of the scripts into
a common module to prevent some of the confusion surrounding
this and other initialization issues.

Closes-Bug: #1310785

Change-Id: I433dde896d7384e577e60ac3dd795a9c5c97d689
Merge "Make sure eventlet starts correctly"