[DO NOT MERGE] router api implementation

First phase of router API.
This should go into /var/lib/ - either /var/lib/containers/routes/routes.json, or someplace under lib.