Becoming prime minister caps Anwar Ibrahim's roller-coaster political journey, from a former deputy PM who was imprisoned in the 1990s led to a reform movement that became a major political force.