Resolve hostname into IP address if necessary

If a hostname is passed as a command line argument, resolve this into an IP address before passing it along to soco. This allows a user to have speakers in their /etc/hosts file for easy control. 
I'd recommend to move that regex to a module level constant for clarity.