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

cool, one less hack to maintain. Looks like this bug was fixed in 2012.