Ed Upson's late strike gave Yeovil their first-ever win in the second tier of English football as they edged past Millwall at The Den.