No longer send network_ids when the --no-public-ip option is specified

This should fix #1

The code is almost the same as what @agoddard wrote in #20, but ready to be merged with current master.

The fix originally made by @agoddard works well for me in basic mode.