Convert port to int from string from the form

Also use http.StatusSeeOther instead of "303" for status code in
redirect. They are the same thing, but it's more informative.