Moving appHandler to a constructor arg.

I've added `TODO-3.0.0` where applicable with `console.warn` where appropriate.

This will not break back compat (thank you @eddieajau).