Making more of the N1KV unit tests work.

- Added HTTP lib mocking.
- Create necessary DB objects in setUp() function.
- Fixing inheritance bug in test case.
Fixing merge conflicts
Adding a default for config-dir
Merge branch 'jb_unit_tests' into n1k-plugin