Separated dpacalc from dpacalc_prog classes

As a rule, if you have to change the interface to make it work
with dpacalc_prog, the classes will be separated. Some classes
don't need to be separated for now.