New api proposal

This is a proposal for a new api for qanimationframe. This PR implements this https://github.com/gre/qanimationframe/issues/1#issuecomment-31114003