A guide to playwriting from the author of The Libertine.