Rx investigation

This pull request fixes the problem explained in this bug: https://github.com/gem/oq-hazardlib/issues/223

We implemented two new methods in the geodetic.py module called 'min_distance_from_segment' and a 'distance_to_semi_arc'. We also added new tests for these methods as well as for the modified version of the 'get_rx_distance' method in openquake.hazardlib.geo.surface.base.py

The results of the build process on CI are available here:
https://ci.openquake.org/job/zdevel_oq-hazardlib/86/

Here is an example of the results provided by the updated version of the 'get_rx_distance' method
![image](https://cloud.githubusercontent.com/assets/318811/3993843/165a8868-2912-11e4-9466-96dc45c23fbb.png)
by doing:
seg_azim-azimuth1 % 360

your are applying the modulus operator only to 'azimuth1', while I think you should apply it to the result of the subtraction, that is:

(seg_azim-azimuth1) % 360