Manchester City moved into second spot in the table with a thrilling 4-2 win over battling Fulham at Craven Cottage.