add external application api and tests
Merge branch 'master' of github.com:cbdr/ruby-cb-api