Added API to list credentials

Those changes allow to use /api/* for credential domain and for credentials.