Use sendfile to serve files

This is still a very basic implementation, but it at least uses sendfile successfully.