Finished introduction of apache commons for file and fileName utils.

Also made some improvements in the logic and the basic skeleton is
actually working. Also added TODOs.