uuid fix for browserify bundling

fixes #2365 by fxing the uuid call failing. also fixes grunt so that it passes appmaker even if it takes more than 3 seconds to fully initialize, which may be necessary for grunt testing this fix (seen travis fail due to timeout before)