Added file method. Improved end method
Default mime type is html
Added stream-buffers dependency