REST is short for Representational State Transfer, an architectural style for building web services. How does it work and what are its benefits?