Spanish giant completes one big battery project ahead of schedule as it lands a contract for an even bigger project with 10 hours of storage.