Refactor spec_helper

- Suppress Thin logging.
- Use ruby to test whether `phantomjs` exists.