Essays on Contest Design and Contract Design