Try harder when the line-search fails.
Print exit code when BFGS terminates early.
Save memory when using log_det_ldlt.
Merge branch 'master' of https://github.com/stan-dev/stan