Fix deprecation warnings
Merge pull request #27 from apiaryio/smizell/fix-deprecation-issues

Fix deprecation warnings