added api classes, started updating wrapper to use those classes
Merge branch 'master' of https://github.com/evangs/pyriot