add interruptions to bfgs

this can be merged after stan pull #840 is merged
Merge pull request #98 from stan-dev/feature/interruptions4bfgs

add interruptions to bfgs for issue #96