Lightweight framework for structured web applications