Refactoring Tasks and added Apt Task.

I added a Apt task and refactored the base task class.

The idea is to use Symfony/YAML to generate the final files and as it uses arrays I'm using IteratorAggregate.