Read native dokuwiki settings, and several fixes

As title. Details see commit logs.