Changed from os:cmd to erlang:open_port so we can stream the result. This is one step for creating chunked reply. We also default the data to binary. 404 for missing files also added.
Merge remote-tracking branch 'origin/master' into better-file-handling

Conflicts:
  src/component_handler.erl
Bad merge, re added removed functions.
Mimetype dependent on file added to headers instead of hardcoded one. Missed that completly.
Removed unnessary bin <> list convertion.
Merge pull request #10 from DiversityTemplating/better-file-handling

Changed from os:cmd to erlang:open_port so we can stream the result. Thi...