Implement litle batch processing

I think it's ready to deploy to heroku