Fix apply signature.
Run steady state examples as tests.
Add scripts to download and build petsc.

Use that in ci tests to run steady state tests.