various bug fixes in admin.js; make sure apiAdminUpdate checks for tasks *after* find() completes
Merge pull request #39 from simonzack/master

bug fixes in admin.js to make sure the admin check actually returns; make sure apiAdminUpdate checks for tasks *after* find() completes