Rename resolve.js to promise.js
Change calli.createResource and calli.insertResource to return a promise
Close create dialogue when lookup result is clicked