refactor nrepl-* functions, add prev window bounce