Make handling of ShowRouteReq more efficient, add more tests.

Don't go through all instances if instance or table is specified.
Don't go through all prefixes in a table if exact prefix is specified.