fix #225 Improve compiler error for attributes with missing quotes

Close #307
fix double quotes in compiler error messages introduced by #307
fix #319 Call $afterRender after actual DOM insertion

$afterRender method of components controllers is now called after the component corresponding markup is added to the actual DOM.