Move example residuals/solutions to their own file
Add test for adaptivity with a sharp change for midpoint method
Add helper checking function in ode tests

* Also cleanup (autopep8).

* Also exclude example_residuals.py from autopep8 because it has lots of
  one line functions, much more readable in a non-pep8 style.