Application structure for building Brix/Cocktail application, targetting javascript & flash