Migrate decorators.py and tasks.py from apps/amo

good find