correct loop control. Some tests were not performed.

You may see better or worse results, because the additional tests
may find a better result or they may prohibit to find 
the same result with a given number of --search-limit

git-svn-id: http://svn.mkgmap.org.uk/splitter/trunk@399 838fabe5-b1a8-4b81-9896-7a84386980e9
Ensure that there is a resources directory.


git-svn-id: http://svn.mkgmap.org.uk/splitter/trunk@400 838fabe5-b1a8-4b81-9896-7a84386980e9
reduce default for --search-limit from 1.000.000 to 200.000

git-svn-id: http://svn.mkgmap.org.uk/splitter/trunk@401 838fabe5-b1a8-4b81-9896-7a84386980e9
refactoring: divide source into multiple classes to ease 
creation of unit tests. 
No intended functional change.

git-svn-id: http://svn.mkgmap.org.uk/splitter/trunk@402 838fabe5-b1a8-4b81-9896-7a84386980e9