Rename is_vm_running() to vm_state()

Permit to be able to test running or stopped state.
Fix corresponding bug when starting VM.
Check if VM is not already in the desired state
Remove unwanted newline netcat output
Fix typo
Show usage if nonexistent action is requested
Add code separators to improve readability
Add licensing information in script header