Refactroing i-bem.bemhtml

see #54 

cc @veged @indutny @dfilatov