Added Factory class.
Added unit test for Factory.

Refactored unit tests. Using namespace and bootstrap file.
Updated PHPDocs.
Updated demos and examples.
Ignoring phpunit.phar.