Backport changes from loop-server repo

And also enhance a bit the README file.