Take requirejs into use and modularize shared and alreadu split components
Extract rendering to draw module