Army camps, spell factory, clan castle, and lab/troop upgrades should be top priority for any farmer. I'd do lab, then camps, then clan castle, then spell factory. With a maxed farming army, gold upgrades should be no problem.