Refactor composer json logic.

This sets the object up ready for some unit tests and makes it a bit
more friendly for us.
Added phpunit test env

- require phpunit
- add config and autoloader
- true assert test
Added unit test for ComposerJson
Merge branch 'release-0.3.0'