Merge pull request #20 from Connexions/revisions

Refactor test cases to use models to prevent mistakes
Test case for publishing a revision. Depends on #17