update weblet.json to new format and other refactorings