rest: support local-rib URL

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
peer: add MarshalJSON function

Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>