Chris Rogers first half-century for Australia was one of the highlights on a thrilling fourth day at Trent Bridge.