Refactoring, divide workflow between dist and dev

  With the use of gulp-if the workflow has been optimized,
especially for the support of dev and dist worflow. Gulpfine is now
more maintainable. Watch functions have also been optimized.