Added Streams and Refactored OWIN/JS