Essays On Dynamic Games And Contracts With Learning