Neil Patrick Harris to host the Emmys