Add a sample plugin that removes trailing whitespace on save. Also add the api that this plugin uses.