Framework for creating desktop applications with web as ui engine