Dirichlet branes, homological mirror symmetry, and stability