Add wipe transition

Also refactoring of the transitions package in general, reducing
copy-paste and increasing code reuse.