Imperfect Commitment and the Revelation Principle