Implement rlist_swap() and rlist_prev_entry_safe().

Add unit tests.
Improve trigger API to accept context and allow a list of triggers.
Minor style edits in the plugin initialization.
Merge branch 'master' into dict-v5

Conflicts:
	src/lua/session.cc