Add node flows tests.
Remove unused code.
Fix jshint complaints.
Add setFlows test.
Merge pull request #267 from hindessm/flows-tests

Flows tests