A former Iranian president makes rare public comments praising anti-government protesters.