use gulp-inject to move js file references into gulpfile

- Better userState existential test
- Get rid of unused userState dependencies
Merge pull request #372 from settinghead/master

use gulp-inject to move js file references into gulpfile