Added Phake, updated Composer dependencies
Initial tests and fixes