Implement generic proximal Newton solver for solving nonsmooth minimization problems See merge request !63