Support the new API methods from flapjack's notification rules.

This should be merged at the same time as https://github.com/flpjck/flapjack/pull/120 -- please also check that my work from https://github.com/jessereynolds/flapjack/pull/8 has made it upstream.