Added Atom.resolve method to resolve promises