Fix History issue and revise gulpfile

History is now recognized and gulp file has proper tasks for distribution and example
history.js example working