Essays on financial market structure and design