Change hostname only if they differ and added restart machine
Set gateway for all networks if specified not just for public
Merge pull request #16 from kashivreddy/restarthostset

Change hostname only if the name is different and added restart machine
Merge pull request #17 from kashivreddy/pubgateway

Set gateway for all networks if specified not just for public