Resolve referred with plain objects. Pass the same parameters to "done" functions than jquery does. More testing