Further code cleanup/rearranging.

* Removed almost all code from main section and put into subs
* Added variable for default port
* Got rid of the ugly HTML form code and replaced it with
  moderately less ugly code, generating the form using CGI.pm
* Got rid of the get_voice_id(). Code reshuffle made it unneeded.