Re: elimination rather than substitution with dibromide.
I think this is a good question, and one that I don't have an answer for. A rule of thumb, is a secondary halide give the elimination product if the (conjugate) base has a pKa of greater than 12. There is a limit to the effectiveness of substitution reactions with strong bases. Ammonia is a very weak acid, therefore amide anion will be a very strong base. Presumably, the vicinal regiochemistry is sufficient that elimination becomes the major pathway.