Jonjo Shelvey's late winner takes Liverpool into the top half of the table for the first time this season.