Added an option to perform a block on a main thread and wait
Merge pull request #2 from jgretz/dispatchAndWait

Added an option to perform a block on a main thread and wait