Make dispatch_api hookable

* Make dispatch_api hookable event
* Allow API to ignore_sticky_posts