shell: Add input space validation when adding a server

Add input validation and visual style when error occurs.
Remove get_focus and lose_focus functions.
Add some restrictions for empty host name in case "Next" button is enabled accidentally.
Adjust the format of function calls and definitions in cockpit-setup.js

Fixes #943