Add create/delete repo api for web api.
[api2] Fixed add/delete repo bug
Merge branch 'add-repo-api'