Add app, layer and widget models. Add widget loader. Updates and cleanup.