Refactor clipboard support to be more customizable

Closes #37