extract sync func to sync.js
Merge branch 'master' into deploy
add worker to Procfile