Enforce prior to refinement for node mismatch

Enforce mismatch prior to refinement at edge level
Fix spacing, formatting issues.

Remove unnecessary const_cast.
Factor out common code into helper function.
Merge pull request #339 from libMesh/enforce_mismatch_prior_to_refinement

Enforce prior to refinement for node mismatch