Splitting things up again.

I'm attempting to split things up further, to make the relationships between the parts clearer.  This split tries to move all of the parts that are relied on globally (including by plugins), but do not have any internal dependancies into their own module, lib/wiki.coffee.  And then includes this module as window.wiki for both the real and test clients.