build: simplify & fix
build: simplify & fix

 - remove git checkouts, fauxton never used git checkout and they
   add complexity
 - fix async code: an async function call returns undefined, fix
   done(local && remote)
 - fix async code: as async callbacks do not return move the
   done-callback to the point where all async operations are
   finished to avoid possible race conditions

PR: #582
PR-URL: https://github.com/apache/couchdb-fauxton/pull/582
Reviewed-By: Michelle Phung <43ba0a8dfebc02e9110ad1fb62dc9eb1576ddad2@apache.org>

popojargo/couchdb-fauxton,garrensmith/couchdb-fauxton,michellephung/couchdb-fauxton,cloudant/couchdb-fauxton,robertkowalski/couchdb-fauxton,apache/couchdb-fauxton,michellephung/couchdb-fauxton,cloudant/couchdb-fauxton,benkeen/couchdb-fauxton,apache/couchdb-fauxton,michellephung/couchdb-fauxton,garrensmith/couchdb-fauxton,apache/couchdb-fauxton,benkeen/couchdb-fauxton,michellephung/couchdb-fauxton,popojargo/couchdb-fauxton,robertkowalski/couchdb-fauxton,michellephung/couchdb-fauxton,robertkowalski/couchdb-fauxton,cloudant/couchdb-fauxton,garrensmith/couchdb-fauxton,cloudant/couchdb-fauxton,popojargo/couchdb-fauxton,garrensmith/couchdb-fauxton,benkeen/couchdb-fauxton,robertkowalski/couchdb-fauxton,popojargo/couchdb-fauxton,apache/couchdb-fauxton