Restructures tests to use Autoloading/bootstrap, updated phpunit, adds dotenv for easier env setup in testing