Issue 48: Check that API actually works
Issue 46: dumpgenerator should follow redirects

Patch by @balr0g from libsonic (GPLv3+).
Merge pull request #118 from nemobis/bug/46

Issue 46: dumpgenerator should follow redirects
now we use JSON properly in getPageTitlesAPI(), instead of XML; fixing some wrong prints, now support utf-8
merging...
Merge pull request #117 from nemobis/bug/48

Issue 48: Check that API actually works
improving checkAPI() using JSON properly loaded
using JSON to retrieve namespaces via API
adding more user-agents, but keeps the first as default by now
comments and tabs
comments and newlines
add saveSiteInfo() to download meta=siteinfo data from API to a file
only if api exists