refactored nrepl_session to perform requests and callbacks generically