internal/router: handle not-found metadata as newly specified in charm API document

Also drive-by fix untested meta listing endpoint and add test for it.
sort metaNames results for consistency
Merge pull request #44 from rogpeppe/017-metadata-not-found-error

internal/router: handle not-found metadata as newly specified in charm API document

Also drive-by fix untested meta listing endpoint and add test for it.