Devided the library, so test files can be added

Added directory for PHPUnit tests
Merge remote-tracking branch 'origin/master' into DB