Introduce --query parameter for SMW_refreshData.php

--query=<query> will refresh only the pages returned by the given query
             Example: --query='[[Category:SomeCategory]]'
             Options -s, -e, -n, --startidfile, -c, -p, -t are ignored if --query is given.


This patch also
* changes counting of number of pages to start from one and
* introduces delaying for --pages and --query