Initial commit contd.

- Added unit-test for net-plugin
- refactored code to use json config as gcfg was not flexible to
  allow configs for plugin and drivers in same file that can be
  parsed separately
- More fixes based on added tests