Merge pull request #21 from pads/master

Fix Dependency Issues
Merge pull request #22 from pads/master

Fix node dependency issues to allow server.js to function
A version number is required for npm compliance

Otherwise it throws impossible to understand errors.
Run correctly on OSX

There, a socket may shutdown before the os chooses to do so,
causing a socket error (errno 57). After searching the web, the
easiest workaround is the check of errno done here.

Also: do part of #23, calling render_wikitext instead of local
render. This should mean that tiddlywiki text can include other
types (like markdown).
Get working with node 8.x

In that, httpClient is replaced by http.request

This is part of cleaning up and clarifying to make some
feature improvements.
Get rid of the serialization, it's not useful

The power of twikfied comes solely from being a renderer.

Also pep8, pylint, pyflakes
jslint and space to tabs

My editor (for javascript) now talks tabs, because...

of other people

I must be in hell.
fix #24

If we don't have the perms to load a private colleciton, just
don't load any collection. We'll still render.
Remote space transclude from recipe not bag

fix #23

Extract the transclusion section to its own function.

There's a _lot_ more refactoring that could happen here. The
socket handling is very noisy and the dom parsing annoying.

In the proces discover several bugs with the socket handling
in server.js. The essential changes was to return the emitter
from processData before actually starting the function. The
resulting code is not in the correct form, but I'll need to
research the correct form to get it right.
get rid of console debugs
Assure the socket file is removed before a restart

Otherwise, with latest nodejs, there will be no restart,
the socket will be in use.
remove socket file before listening on the socket

See

   https://github.com/joyent/node/issues/3540
   https://gist.github.com/9f93cdcd3a77b9142e51

for details on what's happening and why this is the fix.
Address an obvious memory leak.

There are probably others, but this one is big.

The 'window' variable is an instance of a jquery-ized DOM.
In the original code this is treated as a global but what we
really want is a window per request, one that gets thrown away
after the request is handled.
jslint minor tidies
jslint cleanups

Most important fix here is making sure storeURL is not a global.
Slight tidy to TwikifierEnd.js
Temporarily remove memcached support

This is to make the code more readable
correct number of arguments

Make logging message make sense.
better log messages
do not peg and old version of jsdom