use built in http module
listen / on port 8080
url decode body
for each arg in remaining args
get arg as key in body
default to empty string
print each value
exit 0

while listening
get timeout from first arg in seconds
exit 1 when timeout is reached
