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 1-based.)
Merge pull request #243 from s7eph4n/master

Introduce --query parameter for SMW_refreshData.php