Various gulp build system improvements

Fixed number of bugs
Correct template and widget cachin
Travis tests with both minified and non-minified gulp build versions