changes needed for stan's merging of pull #155

Stan changed how to call log_prob and grad_log_prob
optinally adjust for the log jacobian if there
are parameters transformed from constrained
space to unconstrained space