Refactored the code. Finished implementing routes for virt basic commands. TODO: add error checkingto the code and write tests.