Essays in Labor Economics and Contract Theory