Merge branch 'develop' of https://github.com/stan-dev/stan into develop
fixes issue #543
Merge pull request #545 from stan-dev/bugfix/issue-543-log-prob-grad-exception-spew

Fixes #543. log prob grad exception spew
Merge branch 'develop' of https://github.com/stan-dev/stan into develop
added apply_recover functional to autodiff to catch, recover memory, rethrow, fixing leak in #543
re-added memory recovery for gradient to fix issue with symplectic test
Merge pull request #548 from stan-dev/bugfix/issue-543-grad-functional-leak

Fixes #543. Bugfix/issue 543 grad functional leak
Merge branch 'develop' into feature/issue-532-remove_write_csv
adding optimization output test. fixed newton method so it actually runs
removing last remaining call to write_csv