extract some common logic of twirl compiler and routes compiler configuration setup
on full recompile remove stale outputs before doing the actual compile