Implementation of network_interface has been added to legion network; Added new unit-tests for legion network; Little refactoring