add resouce apis ,add test case for api
add api for database
add role in instance api for getting the slave list
Merge pull request #1 from xchliu/master

sync