Ecuador has tethered its economic fortunes to a burgeoning mining industry. Now it just needs to get bureaucrats and community leaders on board.