Bug fixes and closer parity with FB API

* Fixes broken `spyFactory` that was resulting in exceptions with Sinon
* Adds callback support to `setPriority` and `setWithPriority`
n/m; I'll take care of it.