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

We do still use this.