Gating of a Molecular Transistor: Electrostatic and Conformational