William Mesny's exploits in 19th-century China are the stuff of legend and make for a thrilling book, David Leffman’s The Mercenary Mandarin