Read/Write to routers

Changed it so that files can now be transfered directly between routers
and the cli files will now be correctly parsed. Needs some serious
refactoring