IPConfiguration improvements

-   get-ipconfiguration is now formatted by default to look
	like ifconfig
-   removed lots of duplicated code
-   minor improvements and bug fixes