add gulp-connect
add dist to gitignore
support building to both cjs and amd