Split up and more python way of doing it.

git-svn-id: http://svn.wikimedia.org/svnroot/pywikipedia/branches/rewrite@11372 6a7f98fc-eeb0-4dc1-a6e2-c2c589a08aa6
Added crude dupe checking so we're not causing a big mess.

git-svn-id: http://svn.wikimedia.org/svnroot/pywikipedia/branches/rewrite@11373 6a7f98fc-eeb0-4dc1-a6e2-c2c589a08aa6
API-based search: [] means /every/ namespace, not just 0

In the scrape-based search, the namespaces=[] parameter meant to search /every/
namespace, not just 0. This commit adapts the API search behavior to be
consistent with this.



git-svn-id: http://svn.wikimedia.org/svnroot/pywikipedia/branches/rewrite@11380 6a7f98fc-eeb0-4dc1-a6e2-c2c589a08aa6
Merge branch 'upstream'