Updated the system to handle namespaces and make the code compliant with Symfony 2 coding standards that Composer requires.

Signed-off-by: Alfonso Martinez <corrupted.rogues@gmail.com>