Sanitising extensions and allowed_types.
Merge branch 'develop' of https://github.com/nailsapp/module-cdn into develop