Drop dependency on Common Lisp-isms.

Reimplemented (remove-if) and (remove-if-not) in pure elisp, avoiding
a dependency on CL.