Added apigen and PHPCS to composer.json
Added AdapterFactory.php and tests