A lightweight framework for structured web applications