Protein-DNA Binding: Discovering Motifs and Distinguishing Direct from Indirect Interactions