Modified Silex provider to use HttpException status codes

If the exception does not have HttpException in its inheritance tree, the current value of 500 will be used as a fallback.
Use PlainTextHandler when in CLI mode
Use PHP_SAPI constant
Fixed the bitwise operations bug introduced in the previous pull
request: https://github.com/filp/whoops/pull/231