Add promise structure to PROPFIND method

Also moves variable declarations in webdav-services.js to
top of scope