Fixes #12. Checking if filters return a promise and resolving / rejectin...

...g it accordingly