Prepare for streaming output from the template by giving renderTokens a write function as input that is used for writing to output instead of appending to a buffer. Optionaly create a write function in the returned function from Writer.compileTokens.
Exported the stream output functionality by adding a streamRender method.
Broke out rendering of a single token to an own function.
Moved value lookup from renderToken to renderTokens in preparation for handling deferred values.
Ignore Emacs *~.
Factored out the functionality for reading test data from files to a utils module and added an explicit directory path param. This in preparation for haveing a second directory with tests.
Depend on Q in tests.
Tests for rendering of objects, arrays, objects with a forEach method and nested objects with deferreds in. Tests on the same views using streamRender whith a short delay in the write function.
Handling of promises in data input and in write function. Also added handling of array like object with forEach method.