Andy Carroll made a dream return to the West Ham United first team as he scored the winner in a 1-0 victory over Swansea City at Upton Park.