Logarithmic conformal field theory and boundary effects in the dimer model.