clean, efficiency, cdn

Cleaned up some code.  Made some changes to make it more efficient.
Also, added support for CDN endpoints.
random

Set RANDOM to False (default setting)
cdn, logging

cleaned up cdn process.  working random cdn testing functional
merging upstream