Use foreman style .env file for 12factor test config.

Add processing to tests/bootstrap.php that looks for a .env file in the top
level project directory and loads settings found there using logic compatible
with heroku's foreman application. This allows easy 12factor style
configuration injection for the test suite.