Prototype 3p handling in mlefit

Added completely functional 3p optimization in R code.  (Not ported to
C++ pending validation testing.)