Restful authentication plugin for the Phrails framework