added optional CDN support
Merge pull request #369 from jdorfman/master

added optional CDN support