Adding the ability to share integ tests as examples

Integration tests can now be used as example code for both API docs and Sphinx docs. This allows us to write examples once and use in multiple locations. This also allows us to ensure that our examples are accurate by continuously testing them through integration testing.