Add timeout to potentially blocking getfilename API call.

Use http.Client.Timeout.
Merge pull request #6 from pavben/do-not-block-UI-2

Add timeout to potentially blocking getfilename API call.