David Moyes got his first league win as Manchester United manager in style with a 4-1 win away to Swansea.