Remove globals, other code improvement
Implement interwiki links
Move functions into new Wiki class