apply new name changes and refactor unittests code
Merge branch 'api-services' of https://github.com/vaytess/pyatta into api-services