Updates interface for new Stan

The API changes are minor. The addition of var_context_factory is the
biggest change.
Remove unused code from stanfit4model