Removed unneeded fs require
Streams2 compatibility + gulp recommendations + stderr emit errors
Added tests