Fixes for paste plugin, and allow options to specify what types of pastes are allow.