added .cfg and .geo files for more genericity @ranine @mszopos
minor changes in application @mszopos, @ranine:
 - make it generic : 2D/3D
 - reduced function sizes (cleanup)
 - jacobian and residual are now member functions