Updated to match PSR-2.
Added phpunit as a require-dev dependency.
Made small tweaks to gitignore and gitattributes files.
[issue #13] Updated factories to pass the container as an argument to the factory method.