fix($server): folders not being created in index on windows

This was due to the fact that `path.sep` evaluates to '\' in windows,
but glob produces file paths always delimited with '/' regardless of the
platform. This meant the server could not previously determine any
directories under windows, and so every file was incorrectly a top level
file.
fix($server): remove outline if toc does not exist

This was previously not happening as the toc evaluated to some
whitespace (only) string, even if no toc actually existed in the
document. Therefore, the fix is to trim the resultant toc before sending
it to be rendered, so that hogan (the templating engine) could properly
determine a boolean value from it.