Ensure completion handlers run on main thread.
Merge pull request #56 from robertjpayne/bugfix-main-queue

Ensure completion handlers run on main thread.