fix deprecation warnings, upgrade modules and add compression middleware