add service manager and finish service test
Merge pull request #10 from fengjingchao/dev

add service manager