Rename a few utility functions
Rewrite quotify to eliminate ugly special-casing

Add an optional exclude argument to filter out note links or
similar when quotifying.