Jonjo Shelvey saved Liverpool's blushes with two goals in an entertaining Europa League group game at Young Boys.