Hough lines constrained by angle

Reformatted version of https://github.com/Itseez/opencv/pull/2109 for master for this issue: http://code.opencv.org/issues/3438.