Using components in Node.js fails due to no DOM

I believe I've found a work-around. I've modified the Ractive init function to accept 'window' and 'document' variables, which it then sets to the scope of the Ractive module (in the cases that document and window are both undefined).

Fixes issues experienced in #448