use webmachine as REST framework