simple file server function. easily add a new file type by adding it to the fileExtensions obj.
naive http static file-server