Recoded some weird ways of doing things from tinyhttpd and made it IP
version agnostic. I am pushing to origin to give it a go on my other
environment.