Added wicd-wired-p command and fixed test for wired

The previous test for a wired connection always reports a wired
connection because the empty string isn't considered false. This commit
fixes that with the use of the string/= operator. It also pulls the test
out into its own function and updates get-wicd-current-essid to call it.