Mob 2377

We are considering this option but first we want to clean up the code and move different parts of logic to separate AMD modules. second step would be to decide if we need templeting language or not