Added majority of router configuration parsing logic.