added support for stream to
refactor receive chunk
replaced sending message by a function call
removed unecessary case
Merge pull request #9 from inaka/stream_support

Now user can provide a handle_event