added callback for do_bfgs_optimize at every iteration
Merge pull request #840 from stan-dev/feature/issue-768-interruptions-for-bfgs

Fixes #768. added callback for do_bfgs_optimize at every iteration