Added dependency on foreman-tasks

Now images can be built using the first associated template with
the selected operating system. The image build is started and
monitored using a foreman-task.