Problems In Mathematical Finance Related To Time-Inconsistency And Mean Field Games