Big Upgrade

Add Entity compatibility.
Externalize PDO Connexion.
Add Tests (PHPUnit).
Add Travis.