Added API for getting and setting network configuration
fixed jshint errors/warnings