Baseline commit

This is mostly the old PushPlugin code as a baseline, before I start
adding the new stuff.