Getting ready for merge.
Merge branch 'trunk' of github.com:/larlight/LArLight into trunk
Changed CPAN to move calculation of rough start point into GetProfileInfo.
This allows the refine direction method to be called before refining start
points.  I've also merged the opening and closing angle calculation into
the RefineDirection function, since they are almost exactly the same calc.
If the refined start points have been found, refine direction will use those.
Otherwise, it uses the rough start and end points.  So, it could be
called twice in the same cluster reasonably.

I moved it up in the function calls in the python script to reflect these
changes.  David K, I changed some of your code.  Andrzej, I copy/pasted yours
into the new function without change.
Merge branch 'trunk' of github.com:/larlight/LArLight into trunk