Refactored app config package

Now it is less coupled to the dsl and reflects better hadoop input
and output types
Extracting JobFactory to its own file
Misc changes and adding average computation