Use ruby to check whether phantomjs exists.

`which` does not exists in Windows, and `which x` may returns nil
instead of string.

Refs #515
Suppress Thin logging in rspec.
Merge pull request #516 from doitian/spec_helper_refactoring

Refactor spec_helper