update utils.js
Add Scott's photo upload code to mikedev branch
add comment to check function
Use q module methods for async callback stacking to make sure values are there when we need them, and without the pyramid of doom
refactor and expand use of q module