Essays In Time-Inconsistent And Endogenous Discounting