Scotland's bid for independence bets on meeting ambitious renewable energy goals as much as on the dwindling riches of North Sea oil and gas.