Implement `Promise#filter`.

Borrow the API for `Promise#filter` from `Array#filter`.