allow listening on all interfaces, platform-independent modifications

Added a few modifications.

When no host (address as you called it) is provided, `http.ListenAndServe` will listen on all interfaces. This is probably the intended use in default cases.

Retrieving the current working directory should be safer with `os.Getwd()`.

Also, apply `go fmt` to the source.