Classical Polylogarithms for Amplitudes and Wilson Loops