Lazy rendering for RESTful web application