Add order for collections in build time

This code implements the order at build time avoiding hacks as gridPosition, gridOffset, etc... So in application-data.js we can define the positions for apps and collections.