Adding CommonMiddleware to settings