cider compatibility

I replaced nrepl-*-functions with the cider-*-equivalents where necessary.

This would probably need some more testing before merge, since I just tested running tests on one of my test files using `C-c ,`.