Fixes in validating a NIC for a new VM, unitary tests for NIC validation and log4j configuration for tests
Merge branch 'networkapi_4.2.0' of github.com:globocom/cloudstack into networkapi_4.2.0