Make getting document info async

Photoshop's api is async, so this needs to be async as well