Dimer models and homological mirror symmetry