Add a user data argument to plugin callbacks.
Update processors to account for libtwine changes.
Minor refactoring; remove reliance upon globals.