Fix: emit write stream "end" after closing the stream
* This fixes a race condition where the stream may still be open
  after end is emitted and handled
Merge pull request #507 from luvit/fixes/stream_end_ordering

Fix: emit write stream "end" after closing the stream
fix(socket): destroy socket handle on _any_ error
Merge pull request #508 from luvit/fixes/socket_error

fix(socket): destroy socket handle on _any_ error
fix(fs_call): memory leak
Merge pull request #511 from luvit/fixes/fs_call_memory_leak

fix(fs_call): memory leak
more memory leaks in luvfs
on errors, buff needs to be freed
Merge pull request #515 from DBarney/master

on errors, buff needs to be freed
Merge pull request #512 from luvit/fixes/more_memory_leaks

more memory leaks in luvfs
Merge pull request #1 from luvit/master

Master