fetch(1), libfetch: Sync with FreeBSD

Changes include:
 * Increase buffer size from 4K to 16K
 * Include Accept header in requests
 * Implement certificate verification
 * libfetch support