Refactor settings.py and scrapy.cfg for deploying