Essays in Rational Inattention and Market Microstructure