TODO: put the post body in a temp file so it doesn't waste too much ram
NOTE: change char cgibinpath[] = "/usr/fgb/src/cgifs/cgi-bin"

CGIFS:
	Creates a fs based on the HTTP request, mounts it
	on /mnt/cgi and executes a script/prg.
	magic/cgifs/script?var=val.

	/mnt/cgi/
		ctl				# echo "multipart n" get multipart 'n'
		request/			# read-only files
			body			# raw body if POST was used
			cookie
			info			# script's info
			method		# GET, POST, ...
			multipart/	# multiparts
				0/
					body	# body of the multipart
					content-disposition/
						filename	# only when it's a file upload
						name
						type
					content-type/
						type	# mime
				...
			name		# name of the script invoked
			path			# script path
			param/		# queries ?var0=val0
				var0		# contains val0
			query/		# non parsed query which vars are in param/
			content-disposition/	# misc content-disp info
				..
			content-type/
				type		# mime
				boundary
			host
			user-agent
			accept
			accept-language
			accept-encoding
			accept-charset
			keep-alive
			connection
			referer
			content-length
			..*			# misc HTTP headers
	response/
			body			# the response!
			content-type	# mime text/html
			cookie		# cookies
			nph			# non parsing headers
			reply			# http response "200 OK", etc. cgifs finishes when
						# you close reply
