Call all completion handlers on main thread and use modern syntax when accessing dictionaries.

Changed version number to 1.1.