split file utility functions into file.c
add sk_http_write_response_header