Merge pull request #64 from jaypipes/object-model

Total overhaul of REST and object model
Mostly pep8 cleanups in prep for rewriting of the SQL API.