Focus password field after selecting new host.

Also fix auto focus to the username field on page load.
Make existing hosts dropdown full width.
Code cleanup. Lots of PHPDoc. Changed a few visiblity modifiers.