Fix control parameters test so it actually passes.
Replace global n_img in sortwhatfound() with parameter
Make the control_par test pass.
Remove usage of n_img global from track.c
Fix control parameter reading for tracking
Remove n_img from ttools.c
Remove n_img global usage from correspondences.c
Remove some more occurrences of n_img from jw_ptv.c
Remove unused code in pointpos.c
Merge branch 'refactor' of https://bitbucket.org/yosefm/pyptv-git into refactor

Conflicts (just different typing):
	src_c/parameters.c
	src_c/ttools.c
Merge branch 'refactor' of ssh://bitbucket.org/yosefm/pyptv-git into refactor