Add a half-arsed impl of onchange...

... that can't handle atomic writes and does not run/compile on BSD.