MaxCDN Redux

There were a bunch of gem related issues in #820. This introduces the same code with the smallest amount of dep changes introduced.

/cc @jmervine @jdorfman