v0.9.7: Get those specs passing

- stub Rails, using defined? when necessary
- rescue generic errors in templating
- require libs that may not be present for tests