push, pull, import, insert -> Json Stream

Continuation of #703 
Fixes #716 

There is now a proper error handling:
if the stream was never written, it send http error
and otherwise it sends 
`{"error":"<error">}`