CLOUDIFY-2413 modify manager-rest so it can run under gunicorn